Skip to content

Commit

Permalink
Fixed GeneratorTile not accepting power
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Dec 4, 2020
1 parent a4d19dc commit f620efb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public GeneratorTile(BasicTileBlock<T> basicTileBlock) {
markForUpdate();
})
.setCanReset(tileEntity -> canStart() && progressBar.getProgress() == 0)
.setOnTickWork(() -> this.getEnergyStorage().receiveEnergy(getEnergyProducedEveryTick(), false))
.setOnTickWork(() -> this.getEnergyStorage().setEnergyStored(getEnergyProducedEveryTick() + this.getEnergyStorage().getEnergyStored()))
);
}

Expand Down

0 comments on commit f620efb

Please sign in to comment.