aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZach Brown <[email protected]>2019-03-03 15:26:25 -0500
committerZach Brown <[email protected]>2019-03-03 15:27:02 -0500
commit3d60b705bac4d4aa727e12e4893b4d0ad72566e5 (patch)
treebcc32b813debc39465e632d930c8379f57472b70
parentc66f02b1794c85f39f2e7164adf697f2b4e3aedc (diff)
downloadPaper-3d60b705bac4d4aa727e12e4893b4d0ad72566e5.tar.gz
Paper-3d60b705bac4d4aa727e12e4893b4d0ad72566e5.zip
Backport: Fire PlayerArmorChangeEvent for more cases
-rw-r--r--Spigot-Server-Patches/0247-Add-PlayerArmorChangeEvent.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/Spigot-Server-Patches/0247-Add-PlayerArmorChangeEvent.patch b/Spigot-Server-Patches/0247-Add-PlayerArmorChangeEvent.patch
index 8a04bbb536..bb1e82f921 100644
--- a/Spigot-Server-Patches/0247-Add-PlayerArmorChangeEvent.patch
+++ b/Spigot-Server-Patches/0247-Add-PlayerArmorChangeEvent.patch
@@ -20,7 +20,7 @@ index 44335fd2d..9adcabd4f 100644
if (!ItemStack.matches(itemstack1, itemstack)) {
+ // Paper start - PlayerArmorChangeEvent
-+ if (this instanceof EntityPlayer && enumitemslot.getType() == EnumItemSlot.Function.ARMOR && !itemstack.getItem().equals(itemstack1.getItem())) {
++ if (this instanceof EntityPlayer && enumitemslot.getType() == EnumItemSlot.Function.ARMOR) {
+ final org.bukkit.inventory.ItemStack oldItem = CraftItemStack.asBukkitCopy(itemstack);
+ final org.bukkit.inventory.ItemStack newItem = CraftItemStack.asBukkitCopy(itemstack1);
+ new PlayerArmorChangeEvent((Player) this.getBukkitEntity(), PlayerArmorChangeEvent.SlotType.valueOf(enumitemslot.name()), oldItem, newItem).callEvent();