Missed a caluse, ISpecialArmor should work as intended now. And not destroy Armor instanatly.
This commit is contained in:
parent
14ccf7834b
commit
6a8d84470a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue