Merge pull request #142 from 4o4E/develop

This commit is contained in:
tastybento 2023-07-10 18:52:14 -07:00 committed by GitHub
commit 48e1923fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ public class AcidEffect implements Listener {
private static boolean damage(ItemStack item) {
ItemMeta im = item.getItemMeta();
if (im instanceof Damageable d) {
if (im instanceof Damageable d && !im.isUnbreakable()) {
d.setDamage(d.getDamage() + 1);
item.setItemMeta(d);
return d.getDamage() >= item.getType().getMaxDurability();