Updating the blockstate of invalid TEs will cause Forge to restore the block including the TE leading to invalid TEs sticking around after being moved.
This commit is contained in:
@@ -74,7 +74,7 @@ public class TileCraftingStorageTile extends TileCraftingTile
|
||||
@Override
|
||||
public int getStorageBytes()
|
||||
{
|
||||
if( this.world == null || this.notLoaded() )
|
||||
if( this.world == null || this.notLoaded() || this.isInvalid() )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ public class TileCraftingTile extends AENetworkTile implements IAEMultiBlock, IP
|
||||
|
||||
public void updateMeta( final boolean updateFormed )
|
||||
{
|
||||
if( this.world == null || this.notLoaded() )
|
||||
if( this.world == null || this.notLoaded() || this.isInvalid() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class TileEnergyCell extends AENetworkTile implements IAEPowerStorage
|
||||
|
||||
private void changePowerLevel()
|
||||
{
|
||||
if( this.notLoaded() )
|
||||
if( this.notLoaded() || this.isInvalid() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user