From ccb2f2eae8804f2f23f9b8f6513c9c73618461ea Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 12 Mar 2023 00:15:54 +0100 Subject: [PATCH] fix: moved hook out of subclass --- src/main/java/ftbsc/bscv/patches/BackgroundPatch.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java b/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java index dae50ed..992a4ea 100644 --- a/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java +++ b/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java @@ -6,7 +6,6 @@ import ftbsc.lll.processor.annotations.Patch; import ftbsc.lll.processor.annotations.Target; import ftbsc.lll.tools.InsnSequence; import ftbsc.lll.tools.PatternMatcher; -import ftbsc.lll.tools.debug.BytecodePrinter; import net.minecraft.client.gui.screen.Screen; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.Cancelable; @@ -54,7 +53,7 @@ public class BackgroundPatch implements ICommons { is.add(new VarInsnNode(ALOAD, 0)); is.add(new MethodInsnNode( INVOKESTATIC, - "ftbsc/bscv/patches/BackgroundPatch$BackgroundHook", + "ftbsc/bscv/patches/BackgroundPatch", "shouldDrawBackground", "(Lnet/minecraft/client/gui/screen/Screen;)Z" ));