EIMs now properly store their energy in cells after destruction and extract energy from cells after creation

This commit is contained in:
Aidan C. Brady committed 2015-03-03 18:36:10 -05:00
1 parent 9260414177
commit a18b42beee
3 files changed
+11 -7

No files matched your search

@@ -452,9 +452,10 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
else {
for(TileEntityMultiblock<T> tileEntity : iteratedNodes)
{
if(tileEntity.structure != null)
if(tileEntity.structure != null && !tileEntity.structure.destroyed)
{
onStructureDestroyed(tileEntity.structure);
tileEntity.structure.destroyed = true;
}
tileEntity.structure = null;