summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/ftbsc/bscv/patches/PortalGuiPatch.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/java/ftbsc/bscv/patches/PortalGuiPatch.java b/src/main/java/ftbsc/bscv/patches/PortalGuiPatch.java
index d86acfc..7a36e8e 100644
--- a/src/main/java/ftbsc/bscv/patches/PortalGuiPatch.java
+++ b/src/main/java/ftbsc/bscv/patches/PortalGuiPatch.java
@@ -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);
}
}