mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
EIMs now properly store their energy in cells after destruction and extract energy from cells after creation
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user