Skip to content

Commit

Permalink
Use getEnergyStored in cases where energy is available but was not in…
Browse files Browse the repository at this point in the history
…put recently (#1127)
  • Loading branch information
loving2 authored and screret committed May 2, 2024
1 parent f1e2a41 commit 040ba09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private void consumeEnergy() {
energyToConsume += maintenance.getNumMaintenanceProblems() * energyToConsume / 10;
}

if (this.hasNotEnoughEnergy && energyContainer.getInputPerSec() > 19L * energyToConsume) {
if (this.hasNotEnoughEnergy && energyContainer.getEnergyStored() > 19L * energyToConsume) {
this.hasNotEnoughEnergy = false;
}

Expand Down

0 comments on commit 040ba09

Please sign in to comment.