diff --git a/build.gradle.kts b/build.gradle.kts index 1c2a7c2..5c1576f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ group = "xyz.jpenilla" version = "1.8.3-SNAPSHOT".decorateVersion() description = "Customizable trades for Wandering Traders." -val mcVersion = "1.20.1" +val mcVersion = "1.20.2" repositories { mavenCentral() @@ -37,7 +37,7 @@ dependencies { compileOnly("io.papermc.paper", "paper-api", "$mcVersion-R0.1-SNAPSHOT") implementation("io.papermc", "paperlib", "1.0.8") - implementation("xyz.jpenilla", "legacy-plugin-base", "0.0.1+88-SNAPSHOT") + implementation("xyz.jpenilla", "legacy-plugin-base", "0.0.1+91-SNAPSHOT") implementation("org.bstats", "bstats-bukkit", "3.0.2") implementation(platform("cloud.commandframework:cloud-bom:1.8.4")) diff --git a/src/main/java/xyz/jpenilla/wanderingtrades/util/VillagerReflection.java b/src/main/java/xyz/jpenilla/wanderingtrades/util/VillagerReflection.java index 682e5a1..6b46e6f 100644 --- a/src/main/java/xyz/jpenilla/wanderingtrades/util/VillagerReflection.java +++ b/src/main/java/xyz/jpenilla/wanderingtrades/util/VillagerReflection.java @@ -45,7 +45,7 @@ private VillagerReflection() { case 17 -> "fF"; case 18 -> "fH"; case 19 -> "fU"; - case 20 -> "gf"; + case 20 -> "gk"; default -> throw new IllegalStateException("Don't know updateTrades method name for 1." + getMinecraftVersion()); }; try { @@ -76,7 +76,7 @@ private VillagerReflection() { case 16, 17 -> "getBehaviorController"; case 18 -> "du"; case 19 -> "dD"; - case 20 -> "dK"; + case 20 -> "dN"; default -> throw new IllegalStateException("Don't know getBrain method name for 1." + getMinecraftVersion()); }; LivingEntity_getBrain = Objects.requireNonNull(Crafty.findMethod(EntityLiving_class, getBrainName, Brain_class), "LivingEntity#getBrain");