diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/ftbsc/bscv/patches/BackgroundPatch.java | 3 | ||||
-rw-r--r-- | src/main/java/ftbsc/bscv/patches/CommandsPatch.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java b/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java index 992a4ea..5fd234c 100644 --- a/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java +++ b/src/main/java/ftbsc/bscv/patches/BackgroundPatch.java @@ -45,8 +45,7 @@ public class BackgroundPatch implements ICommons { .ignoreLineNumbers() .build() .find(main) - // .getFirst(); // TODO returns first InsnNode of method instead of match? - .getLast().getPrevious().getPrevious().getPrevious(); + .getFirst(); LabelNode skip = new LabelNode(); InsnSequence is = new InsnSequence(); diff --git a/src/main/java/ftbsc/bscv/patches/CommandsPatch.java b/src/main/java/ftbsc/bscv/patches/CommandsPatch.java index 0e8dd2a..505e50f 100644 --- a/src/main/java/ftbsc/bscv/patches/CommandsPatch.java +++ b/src/main/java/ftbsc/bscv/patches/CommandsPatch.java @@ -44,8 +44,7 @@ public class CommandsPatch { .ignoreLineNumbers() .build() .find(main) - .getLast() - .getNext(); // TODO temp fix!!! + .getLast(); InsnSequence is = new InsnSequence(); is.add(new InsnNode(DUP)); |