Skip to content

Commit c0ce429

Browse files
authored
Fix Cleanrooms crashing with >MAX voltage (GregTechCEu#3152)
1 parent 46a3b70 commit c0ce429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/electric/CleanroomMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected void initializeAbilities() {
201201
}
202202
this.inputEnergyContainers = new EnergyContainerList(energyContainers);
203203
getRecipeLogic().setEnergyContainer(this.inputEnergyContainers);
204-
this.tier = GTUtil.getFloorTierByVoltage(getMaxVoltage());
204+
this.tier = Math.min(GTValues.MAX, GTUtil.getFloorTierByVoltage(getMaxVoltage()));
205205
}
206206

207207
@SuppressWarnings("RedundantIfStatement") // `return false` being a separate statement is better for readability

0 commit comments

Comments
 (0)