Commit 07fdf85
committed
Fix ARC not respecting unbreakable items
ItemStack.isDamageableItem returns false if the NBT tag Unbreakable is set to true so it should not be used to check if the item theoretically has durability, Item.isDamageable(ItemStack) returns true if the item has maxDamage set to anything more than 0 so it should return true for anything that would have durability, even if Unbreakable is set to true (or a Forbidden & Arcanus Eternal Stella is applied)1 parent bc7948c commit 07fdf85
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
0 commit comments