Skip to content

Commit 54bc848

Browse files
authored
fix off by one in oc finding (#2019)
1 parent 0eb1769 commit 54bc848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gregtechceu/gtceu/utils/GTUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static byte getFloorTierByVoltage(long voltage) {
223223
return GTValues.MAX_TRUE;
224224
}
225225

226-
return (byte) ((60 - Long.numberOfLeadingZeros(voltage - 1)) >> 1);
226+
return (byte) ((60 - Long.numberOfLeadingZeros(voltage)) >> 1);
227227
}
228228

229229
public static ItemStack copy(ItemStack... stacks) {

0 commit comments

Comments
 (0)