From 9b7c2ef5f95d5d5c5263791f8f5dcdb1cb7901ab Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 9 May 2021 17:31:20 +1000 Subject: [PATCH] Handle renamed ZOMBIE_PIGMAN loot table By: md_5 --- .../java/org/bukkit/craftbukkit/util/Commodore.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java index 6ccfd49c43..45cbdcfc13 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java @@ -159,6 +159,16 @@ public class Commodore } } + if ( owner.equals( "org/bukkit/loot/LootTables" ) ) + { + switch ( name ) + { + case "ZOMBIE_PIGMAN": + super.visitFieldInsn( opcode, owner, "ZOMBIFIED_PIGLIN", desc ); + return; + } + } + if ( modern ) { if ( owner.equals( "org/bukkit/Material" ) )