Prevent block updates while loading parts; Should fix http://openeye.openmods.info/crashes/baf3e72a51ad8a5b8680ec24a819bc86
This commit is contained in:
@@ -126,10 +126,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
if ( cb.isEmpty() )
|
||||
{
|
||||
if ( worldObj.getTileEntity( xCoord, yCoord, zCoord ) == this )
|
||||
{
|
||||
worldObj.func_147480_a( xCoord, yCoord, zCoord, true );
|
||||
// worldObj.destroyBlock( xCoord, yCoord, zCoord, true );
|
||||
}
|
||||
}
|
||||
else
|
||||
cb.addToWorld();
|
||||
@@ -295,7 +292,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
@Override
|
||||
public void notifyNeighbors()
|
||||
{
|
||||
if ( worldObj != null && worldObj.blockExists( xCoord, yCoord, zCoord ) )
|
||||
if ( worldObj != null && worldObj.blockExists( xCoord, yCoord, zCoord ) && ! CableBusContainer.isLoading() )
|
||||
worldObj.notifyBlocksOfNeighborChange( xCoord, yCoord, zCoord, Platform.air );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user