From 49c4b2fd47fc3e7bf473172549bdc1251adc65aa Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 13 Mar 2023 03:19:12 +0100 Subject: [PATCH] fix: update lillero version --- gradle/libs.versions.toml | 4 ++-- src/main/java/ftbsc/bscv/patches/BackgroundPatch.java | 3 +-- src/main/java/ftbsc/bscv/patches/CommandsPatch.java | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a3c0124..df9a3f6 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ gitVersion = "0.13.0" minecraft = "1.16.5" forge = "1.16.5-36.2.34" autoService = "1.0.1" -lillero = "0.3.0" +lillero = "0.3.3" lilleroProcessor = "0.2.1" checkerFramework = "0.6.24" @@ -18,4 +18,4 @@ minecraftForge = { group = "net.minecraftforge", name = "forge", version.ref = " autoService = { group = "com.google.auto.service", name = "auto-service", version.ref = "autoService" } autoServiceAnnotations = { group = "com.google.auto.service", name = "auto-service-annotations", version.ref = "autoService" } lillero = { group = "ftbsc", name = "lll", version.ref = "lillero" } -lilleroProcessor = { group = "ftbsc.lll", name = "processor", version.ref = "lilleroProcessor" } \ No newline at end of file +lilleroProcessor = { group = "ftbsc.lll", name = "processor", version.ref = "lilleroProcessor" } 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));