From 1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Tue, 13 Jun 2017 20:58:18 +0300 Subject: enet update --- ihl/processing/metallurgy/BasicElectricMotorTileEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ihl/processing/metallurgy/BasicElectricMotorTileEntity.java') diff --git a/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java b/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java index f02abea..a546b0a 100644 --- a/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java +++ b/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java @@ -31,7 +31,7 @@ public abstract class BasicElectricMotorTileEntity extends FlexibleCableHolderBa public short progress; protected short operationLength = 6000; protected double energyConsume = 1d; - public double energy; + public double energy = 0d; public int maxStorage = 128; private boolean addedToEnergyNet = false; @@ -257,7 +257,7 @@ public abstract class BasicElectricMotorTileEntity extends FlexibleCableHolderBa @Override public double getEnergyAmountThisNodeWant() { - return this.energy - this.getMaxStorage(); + return this.getMaxStorage()-this.energy; } public double drawEnergyToGrid(double amount) { -- cgit v1.2.3