ItemChisel: Set max damage field instead of overriding getMaxDamage(ItemStack) (#89)

This commit is contained in:
tiffit authored and GitHub committed 2026-04-20 01:35:11 -04:00
1 parent 7b9537571e
commit 2ae1f8ba93
1 file changed
+1 -6
@@ -51,6 +51,7 @@ public class ItemChisel extends Item implements IChiselItem {
super();
this.type = type;
setMaxStackSize(1);
setMaxDamage(Configurations.allowChiselDamage ? type.maxDamage : 0);
setTextureName(
Chisel.MOD_ID + ":chisel_"
+ type.name()
@@ -69,12 +70,6 @@ public class ItemChisel extends Item implements IChiselItem {
}
}
@Override
public int getMaxDamage(ItemStack stack) {
if (Configurations.allowChiselDamage) return type.maxDamage;
return 0;
}
@Override
public boolean isDamageable() {
return Configurations.allowChiselDamage;