diff --git a/nms-patches/Entity.patch b/nms-patches/Entity.patch index 57f8cf16f3..10e3d4fcfd 100644 --- a/nms-patches/Entity.patch +++ b/nms-patches/Entity.patch @@ -40,7 +40,7 @@ + return tag.hasKey("Bukkit.updateLevel") && tag.getInt("Bukkit.updateLevel") >= level; + } + -+ protected CraftEntity bukkitEntity; ++ private CraftEntity bukkitEntity; + + public CraftEntity getBukkitEntity() { + if (bukkitEntity == null) { diff --git a/nms-patches/ItemArmor.patch b/nms-patches/ItemArmor.patch index 181467b7d8..cd50e067a0 100644 --- a/nms-patches/ItemArmor.patch +++ b/nms-patches/ItemArmor.patch @@ -21,7 +21,7 @@ + org.bukkit.block.Block block = world.getWorld().getBlockAt(isourceblock.getBlockPosition().getX(), isourceblock.getBlockPosition().getY(), isourceblock.getBlockPosition().getZ()); + CraftItemStack craftItem = CraftItemStack.asCraftMirror(itemstack1); + -+ BlockDispenseArmorEvent event = new BlockDispenseArmorEvent(block, craftItem.clone(), (org.bukkit.craftbukkit.entity.CraftLivingEntity) entityliving.bukkitEntity); ++ BlockDispenseArmorEvent event = new BlockDispenseArmorEvent(block, craftItem.clone(), (org.bukkit.craftbukkit.entity.CraftLivingEntity) entityliving.getBukkitEntity()); + if (!BlockDispenser.eventFired) { + world.getServer().getPluginManager().callEvent(event); + }