From 6a8d84470a9a3e24950b1a01ce47f368aba5abea Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 10 Feb 2012 07:10:39 -0800 Subject: [PATCH] Missed a caluse, ISpecialArmor should work as intended now. And not destroy Armor instanatly. --- .../patches/minecraft/net/minecraft/src/EntityPlayer.java.patch | 2 +- .../minecraft_server/net/minecraft/src/EntityPlayer.java.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forge/patches/minecraft/net/minecraft/src/EntityPlayer.java.patch b/forge/patches/minecraft/net/minecraft/src/EntityPlayer.java.patch index 9771be5540..e2ba65801c 100644 --- a/forge/patches/minecraft/net/minecraft/src/EntityPlayer.java.patch +++ b/forge/patches/minecraft/net/minecraft/src/EntityPlayer.java.patch @@ -124,7 +124,7 @@ + stack.damageItem((i / 4 == 0 ? 1 : i / 4), this); + } + -+ if (inventory.armorInventory[x] != null) ++ if (inventory.armorInventory[x] != null && stack.stackSize <= 0) + { + stack.onItemDestroyedByUse(this); + inventory.armorInventory[x] = null; diff --git a/forge/patches/minecraft_server/net/minecraft/src/EntityPlayer.java.patch b/forge/patches/minecraft_server/net/minecraft/src/EntityPlayer.java.patch index ca06958222..72ab7e25b6 100644 --- a/forge/patches/minecraft_server/net/minecraft/src/EntityPlayer.java.patch +++ b/forge/patches/minecraft_server/net/minecraft/src/EntityPlayer.java.patch @@ -134,7 +134,7 @@ + stack.damageItem((i / 4 == 0 ? 1 : i / 4), this); + } + -+ if (inventory.armorInventory[x] != null) ++ if (inventory.armorInventory[x] != null && stack.stackSize <= 0) + { + stack.onItemDestroyedByUse(this); + inventory.armorInventory[x] = null;