SMP bug fix
think this will fix the SMP crash cased by pipes
This commit is contained in:
parent
5629758503
commit
638df386d3
1 changed files with 7 additions and 3 deletions
|
@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue