Skip to content

Commit 9726254

Browse files
committed
Make setWorldAndResolution no longer final
1 parent a05ba63 commit 9726254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patching/src/main/java/com/fox2code/foxloader/patching/game/GuiScreenPatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static void patchGuiDebug(ClassNode classNode) {
101101

102102
private static void patchGuiScreen(ClassNode classNode) {
103103
MethodNode setWorldAndResolution = TransformerUtils.getMethod(classNode, "setWorldAndResolution");
104-
setWorldAndResolution.access |= ACC_FINAL;
104+
setWorldAndResolution.access &= ~ACC_FINAL;
105105
InsnList insnList = new InsnList();
106106
insnList.add(new VarInsnNode(ALOAD, 0));
107107
insnList.add(new VarInsnNode(ALOAD, 0));

0 commit comments

Comments
 (0)