mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 04:32:33 +00:00
Allow aliases on synthetic shadows
This commit is contained in:
1 parent
88932f117e
commit
7c8da4fd76
1 file changed
+1
-1
@@ -224,7 +224,7 @@ class MixinPreProcessor {
|
||||
}
|
||||
|
||||
if (!target.name.equals(mixinField.name)) {
|
||||
if ((target.access & Opcodes.ACC_PRIVATE) == 0) {
|
||||
if ((target.access & Opcodes.ACC_PRIVATE) == 0 && (target.access & Opcodes.ACC_SYNTHETIC) == 0) {
|
||||
throw new InvalidMixinException(this.mixin, "Non-private field cannot be aliased. Found " + target.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user