mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Add synchronized modifier to runtime enhanced enum methods
This commit is contained in:
1 parent
79c17cb542
commit
065ebd748a
1 file changed
+1
@@ -133,6 +133,7 @@ public class RuntimeEnumExtender implements ILaunchPluginService {
|
||||
|
||||
values.access &= values.access & ~Opcodes.ACC_FINAL; //Strip the final so JITer doesn't inline things.
|
||||
|
||||
mtd.access |= Opcodes.ACC_SYNCHRONIZED;
|
||||
mtd.instructions.clear();
|
||||
InstructionAdapter ins = new InstructionAdapter(mtd);
|
||||
|
||||
|
||||
Reference in new issue
Block a user