Remove the broken flag on tools when adding a durability modifier to a broken tool (#245)

This commit is contained in:
Moe authored and GitHub committed 2026-01-25 08:37:06 +00:00
1 parent ab057744ba
commit c521bd44d2
1 file changed
+1
@@ -42,6 +42,7 @@ public class ModDurability extends ItemModifier {
bonus += durability;
modDur += modifier;
tags.setBoolean("Broken", false);
int total = (int) ((base + bonus) * (modDur + 1f));
if (total <= 0) total = 1;