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

This commit is contained in:
LexManos committed 2012-02-10 07:10:39 -08:00
1 parent 14ccf7834b
commit 6a8d84470a
2 files changed
+2 -2

No files matched your search

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