Skip to content

Commit

Permalink
Fix item charging in ender cells using the energy storage used for cl…
Browse files Browse the repository at this point in the history
…ient-syncs, resulting in infinite energy. Fixes #55 (#62)
  • Loading branch information
shartte authored Dec 15, 2022
1 parent c52c0ea commit f1d4c49
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ protected long chargeItems(int i) {
}

protected long chargeItems(int i, int j) {
final Energy energy = getEnergy();
long charged = EnvHandler.INSTANCE.chargeItemsInInventory(inv, i, j, getEnergyTransfer(), energy.getStored());
energy.consume(charged);
return charged;
Expand Down

0 comments on commit f1d4c49

Please sign in to comment.