Skip to content

Commit abf09de

Browse files
committed
fix check for dynamo teir
fix check for energy prod line
1 parent bf9f171 commit abf09de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/gregtech/api/metatileentity/multiblock/FuelMultiblockController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected boolean isDynamoTierTooLow() {
7272
IEnergyContainer energyContainer = recipeMapWorkable.getEnergyContainer();
7373
if (energyContainer != null && energyContainer.getEnergyCapacity() > 0) {
7474
long maxVoltage = Math.max(energyContainer.getInputVoltage(), energyContainer.getOutputVoltage());
75-
return maxVoltage < -recipeMapWorkable.getRecipeEUt();
75+
return maxVoltage < recipeMapWorkable.getRecipeEUt();
7676
}
7777
}
7878
return false;

src/main/java/gregtech/api/metatileentity/multiblock/MultiblockDisplayText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public Builder addEnergyUsageExactLine(long energyUsage) {
155155
*/
156156
public Builder addEnergyProductionLine(long maxVoltage, long recipeEUt) {
157157
if (!isStructureFormed) return this;
158-
if (maxVoltage != 0 && maxVoltage >= -recipeEUt) {
158+
if (maxVoltage != 0 && maxVoltage >= recipeEUt) {
159159
String energyFormatted = TextFormattingUtil.formatNumbers(maxVoltage);
160160
// wrap in text component to keep it from being formatted
161161
ITextComponent voltageName = new TextComponentString(

0 commit comments

Comments
 (0)