fix: moved hook out of subclass

This commit is contained in:
əlemi 2023-03-12 00:15:54 +01:00
parent d68a0727fb
commit ccb2f2eae8
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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"
));