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/flexible_cable/AnchorTileEntity.java | |
| parent | 50d62a1298f05d6d440a5bc261a0fdf9ffece893 (diff) | |
enet update
Diffstat (limited to 'ihl/flexible_cable/AnchorTileEntity.java')
| -rw-r--r-- | ihl/flexible_cable/AnchorTileEntity.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ihl/flexible_cable/AnchorTileEntity.java b/ihl/flexible_cable/AnchorTileEntity.java index 1262a01..2da08a6 100644 --- a/ihl/flexible_cable/AnchorTileEntity.java +++ b/ihl/flexible_cable/AnchorTileEntity.java @@ -75,6 +75,11 @@ public class AnchorTileEntity extends TileEntityBlock implements IEnergySink, IE MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
this.addedToEnergyNet = false;
}
+ for(SubAnchorEnergyNetNode sen:energyNetNodes)
+ {
+ sen.onUnloaded();
+ }
+
}
}
@@ -257,7 +262,7 @@ public class AnchorTileEntity extends TileEntityBlock implements IEnergySink, IE double amount=0d;
for(short i=0;i<6;i++)
{
- amount+=energyNetNodes[i].getDemandedEnergy();
+ amount=energyNetNodes[i].getDemandedEnergy();
}
return amount;
}
@@ -437,4 +442,8 @@ public class AnchorTileEntity extends TileEntityBlock implements IEnergySink, IE }
}
+
+ public boolean isTileEntityInvalid() {
+ return this.tileEntityInvalid;
+ }
}
|
