Skip to content

Commit

Permalink
fix off by one in oc finding (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC authored Sep 24, 2024
1 parent 0eb1769 commit 54bc848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gregtechceu/gtceu/utils/GTUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public static byte getFloorTierByVoltage(long voltage) {
return GTValues.MAX_TRUE;
}

return (byte) ((60 - Long.numberOfLeadingZeros(voltage - 1)) >> 1);
return (byte) ((60 - Long.numberOfLeadingZeros(voltage)) >> 1);
}

public static ItemStack copy(ItemStack... stacks) {
Expand Down

0 comments on commit 54bc848

Please sign in to comment.