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++) for(byte i = 0; i < 6; i++)
{ {
//Update the tile entity on neighboring blocks //Update the tile entity on neighboring blocks
TileEntityPipe conductorTileEntity = (TileEntityPipe)world.getBlockTileEntity(x, y, z); TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
int type = conductorTileEntity.getType(); if(tileEntity instanceof TileEntityPipe)
conductorTileEntity.addConnection(getUEUnit(world, x, y, z, i, type), ForgeDirection.getOrientation(i));; {
TileEntityPipe conductorTileEntity = (TileEntityPipe) tileEntity;
int type = conductorTileEntity.getType();
conductorTileEntity.addConnection(getUEUnit(world, x, y, z, i, type), ForgeDirection.getOrientation(i));
}
} }
} }