Skip to content

Commit

Permalink
fixed power usage when there's not enough energy for damaging tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 9, 2023
1 parent c0fdd7d commit c21ddb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ else if (currentEnergy >= multipliedDamage) {
h.extractEu(currentEnergy, false);
stack.setTag(h.getContainer().getTag());
//tag.putLong(Ref.KEY_TOOL_DATA_ENERGY, 0);
return Math.max(1, leftOver / 100);
return Math.max(1, leftOver / getDefaultEnergyUse());
}
}

Expand Down

0 comments on commit c21ddb8

Please sign in to comment.