Skip to content

Commit

Permalink
Use >= instead of >
Browse files Browse the repository at this point in the history
  • Loading branch information
M-W-K committed Jan 16, 2024
1 parent 3e0835e commit 26d9415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gregtech/api/items/toolitem/ToolHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public static void damageItem(@NotNull ItemStack stack, @Nullable EntityLivingBa
if (electricItem != null) {
electricItem.discharge(electricDamage, tool.getElectricTier(), true, false, false);
if (electricItem.getCharge() > 0 &&
random.nextInt(100) > ConfigHolder.tools.rngDamageElectricTools) {
random.nextInt(100) >= ConfigHolder.tools.rngDamageElectricTools) {
return;
}
} else {
Expand Down

0 comments on commit 26d9415

Please sign in to comment.