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++)
|
||||
{
|
||||
//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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue