Skip to content

Commit

Permalink
fix check for dynamo teir
Browse files Browse the repository at this point in the history
fix check for energy prod line
  • Loading branch information
ghzdude committed Nov 30, 2024
1 parent bf9f171 commit abf09de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected boolean isDynamoTierTooLow() {
IEnergyContainer energyContainer = recipeMapWorkable.getEnergyContainer();
if (energyContainer != null && energyContainer.getEnergyCapacity() > 0) {
long maxVoltage = Math.max(energyContainer.getInputVoltage(), energyContainer.getOutputVoltage());
return maxVoltage < -recipeMapWorkable.getRecipeEUt();
return maxVoltage < recipeMapWorkable.getRecipeEUt();
}
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public Builder addEnergyUsageExactLine(long energyUsage) {
*/
public Builder addEnergyProductionLine(long maxVoltage, long recipeEUt) {
if (!isStructureFormed) return this;
if (maxVoltage != 0 && maxVoltage >= -recipeEUt) {
if (maxVoltage != 0 && maxVoltage >= recipeEUt) {
String energyFormatted = TextFormattingUtil.formatNumbers(maxVoltage);
// wrap in text component to keep it from being formatted
ITextComponent voltageName = new TextComponentString(
Expand Down

0 comments on commit abf09de

Please sign in to comment.