diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-06-13 20:58:18 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-06-13 20:58:18 +0300 |
| commit | 1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c (patch) | |
| tree | f9de575627405d0c407b2afb442ab18a6fbea01f /ihl/processing/metallurgy/BasicElectricMotorTileEntity.java | |
| parent | 50d62a1298f05d6d440a5bc261a0fdf9ffece893 (diff) | |
enet update
Diffstat (limited to 'ihl/processing/metallurgy/BasicElectricMotorTileEntity.java')
| -rw-r--r-- | ihl/processing/metallurgy/BasicElectricMotorTileEntity.java | 4 |
1 files changed, 2 insertions, 2 deletions
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) {
|
