Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ARC not respecting unbreakable items #2069

Open
wants to merge 1 commit into
base: 1.20.1
Choose a base branch
from

Conversation

stellanera98
Copy link
Contributor

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)
Fixes #1754

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not Try to Damage Unbreakable Items in ARC
1 participant