mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Missed a caluse, ISpecialArmor should work as intended now. And not destroy Armor instanatly.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user