chore: removed debug prints

This commit is contained in:
əlemi 2023-03-04 03:48:03 +01:00
parent 8b6a696b05
commit 00cf2570e3
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -11,7 +11,6 @@ import ftbsc.lll.processor.annotations.Injector;
import ftbsc.lll.processor.annotations.Patch;
import ftbsc.lll.processor.annotations.Target;
import ftbsc.lll.tools.PatternMatcher;
import ftbsc.lll.tools.debug.BytecodePrinter;
import net.minecraft.client.entity.player.ClientPlayerEntity;
@Patch(value = ClientPlayerEntity.class, reason = "prevent minecraft from force closing guis when entering portals")
@ -23,8 +22,6 @@ public abstract class PortalGuiPatch implements Opcodes {
public void inject(ClassNode clazz, MethodNode main) {
LabelNode skip = new LabelNode();
System.out.println("Finding first pattern");
// BytecodePrinter.printAsmMethod(main);
AbstractInsnNode found = PatternMatcher.builder()
.opcodes(ALOAD, GETFIELD, IFEQ)
.ignoreFrames()
@ -34,7 +31,6 @@ public abstract class PortalGuiPatch implements Opcodes {
.find(main)
.getLast();
System.out.println("Finding second pattern");
AbstractInsnNode after = PatternMatcher.builder()
.opcodes(GETFIELD, ACONST_NULL, CHECKCAST, INVOKEVIRTUAL)
.ignoreFrames()
@ -46,8 +42,6 @@ public abstract class PortalGuiPatch implements Opcodes {
main.instructions.insert(found, new JumpInsnNode(GOTO, skip));
main.instructions.insert(after, skip);
BytecodePrinter.printAsmMethod(main);
}
}