chore: removed debug prints
This commit is contained in:
parent
8b6a696b05
commit
00cf2570e3
1 changed files with 0 additions and 6 deletions
|
@ -11,7 +11,6 @@ import ftbsc.lll.processor.annotations.Injector;
|
||||||
import ftbsc.lll.processor.annotations.Patch;
|
import ftbsc.lll.processor.annotations.Patch;
|
||||||
import ftbsc.lll.processor.annotations.Target;
|
import ftbsc.lll.processor.annotations.Target;
|
||||||
import ftbsc.lll.tools.PatternMatcher;
|
import ftbsc.lll.tools.PatternMatcher;
|
||||||
import ftbsc.lll.tools.debug.BytecodePrinter;
|
|
||||||
import net.minecraft.client.entity.player.ClientPlayerEntity;
|
import net.minecraft.client.entity.player.ClientPlayerEntity;
|
||||||
|
|
||||||
@Patch(value = ClientPlayerEntity.class, reason = "prevent minecraft from force closing guis when entering portals")
|
@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) {
|
public void inject(ClassNode clazz, MethodNode main) {
|
||||||
LabelNode skip = new LabelNode();
|
LabelNode skip = new LabelNode();
|
||||||
|
|
||||||
System.out.println("Finding first pattern");
|
|
||||||
// BytecodePrinter.printAsmMethod(main);
|
|
||||||
AbstractInsnNode found = PatternMatcher.builder()
|
AbstractInsnNode found = PatternMatcher.builder()
|
||||||
.opcodes(ALOAD, GETFIELD, IFEQ)
|
.opcodes(ALOAD, GETFIELD, IFEQ)
|
||||||
.ignoreFrames()
|
.ignoreFrames()
|
||||||
|
@ -34,7 +31,6 @@ public abstract class PortalGuiPatch implements Opcodes {
|
||||||
.find(main)
|
.find(main)
|
||||||
.getLast();
|
.getLast();
|
||||||
|
|
||||||
System.out.println("Finding second pattern");
|
|
||||||
AbstractInsnNode after = PatternMatcher.builder()
|
AbstractInsnNode after = PatternMatcher.builder()
|
||||||
.opcodes(GETFIELD, ACONST_NULL, CHECKCAST, INVOKEVIRTUAL)
|
.opcodes(GETFIELD, ACONST_NULL, CHECKCAST, INVOKEVIRTUAL)
|
||||||
.ignoreFrames()
|
.ignoreFrames()
|
||||||
|
@ -46,8 +42,6 @@ public abstract class PortalGuiPatch implements Opcodes {
|
||||||
|
|
||||||
main.instructions.insert(found, new JumpInsnNode(GOTO, skip));
|
main.instructions.insert(found, new JumpInsnNode(GOTO, skip));
|
||||||
main.instructions.insert(after, skip);
|
main.instructions.insert(after, skip);
|
||||||
|
|
||||||
BytecodePrinter.printAsmMethod(main);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue