Missed a caluse, ISpecialArmor should work as intended now. And not destroy Armor instanatly.

This commit is contained in:
LexManos 2012-02-10 07:10:39 -08:00
parent 14ccf7834b
commit 6a8d84470a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;