parent
8881f1ff12
commit
09581d100b
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ public class TileEngine extends TileBuildCraft implements IPowerReceptor, IInven
|
|||
if (isPoweredTile(tile)) {
|
||||
IPowerProvider receptor = ((IPowerReceptor) tile).getPowerProvider();
|
||||
|
||||
float extracted = engine.extractEnergy(receptor.getMinEnergyReceived(), receptor.getMaxEnergyReceived(), true);
|
||||
float extracted = engine.extractEnergy(receptor.getMinEnergyReceived(),
|
||||
Math.min(receptor.getMaxEnergyReceived(), receptor.getMaxEnergyStored() - (int) receptor.getEnergyStored()), true);
|
||||
|
||||
if (extracted > 0) {
|
||||
receptor.receiveEnergy(extracted, engine.orientation.getOpposite());
|
||||
|
|
Loading…
Reference in a new issue