diff --git a/nms-patches/EntityPanda.patch b/nms-patches/EntityPanda.patch index 6b6f6591bd..d18849b871 100644 --- a/nms-patches/EntityPanda.patch +++ b/nms-patches/EntityPanda.patch @@ -9,6 +9,15 @@ public class EntityPanda extends EntityAnimal { private static final DataWatcherObject bA = DataWatcher.a(EntityPanda.class, DataWatcherRegistry.b); +@@ -445,7 +447,7 @@ + + @Override + protected void a(EntityItem entityitem) { +- if (this.getEquipment(EnumItemSlot.MAINHAND).isEmpty() && EntityPanda.bQ.test(entityitem)) { ++ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityPickupItemEvent(this, entityitem, 0, !(this.getEquipment(EnumItemSlot.MAINHAND).isEmpty() && EntityPanda.bQ.test(entityitem))).isCancelled()) { // CraftBukkit + ItemStack itemstack = entityitem.getItemStack(); + + this.setSlot(EnumItemSlot.MAINHAND, itemstack); @@ -673,7 +675,7 @@ @Override protected void a(EntityInsentient entityinsentient, EntityLiving entityliving) {