Skip to content

Commit

Permalink
Add a check to prevent Eternal Stella from breaking my tools - resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Dec 6, 2024
1 parent 033f14b commit 7293985
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public static int testUseTool(ItemStack stack) {
if (energyStorage == null) return -1; //Shouldn't Happen!
return energyStorage.getEnergyStored() - poweredTool.getBlockBreakFECost();
} else {
if (!stack.isDamageableItem()) return 1;
return stack.getMaxDamage() - stack.getDamageValue() - 1;
}
}
Expand Down

0 comments on commit 7293985

Please sign in to comment.