SMP bug fix

think this will fix the SMP crash cased by pipes
This commit is contained in:
Rseifert 2012-09-03 01:08:40 -04:00
parent 5629758503
commit 638df386d3

View file

@ -131,9 +131,13 @@ public class BlockPipe extends BlockContainer
for(byte i = 0; i < 6; i++)
{
//Update the tile entity on neighboring blocks
TileEntityPipe conductorTileEntity = (TileEntityPipe)world.getBlockTileEntity(x, y, z);
int type = conductorTileEntity.getType();
conductorTileEntity.addConnection(getUEUnit(world, x, y, z, i, type), ForgeDirection.getOrientation(i));;
TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
if(tileEntity instanceof TileEntityPipe)
{
TileEntityPipe conductorTileEntity = (TileEntityPipe) tileEntity;
int type = conductorTileEntity.getType();
conductorTileEntity.addConnection(getUEUnit(world, x, y, z, i, type), ForgeDirection.getOrientation(i));
}
}
}