Merge branch 'development' into networkRefactor

This commit is contained in:
Ben Spiers 2015-04-06 04:36:11 +01:00
commit 1997054bad

View file

@ -83,11 +83,16 @@ public class ThreadSparkle extends Thread
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
{ {
TileEntity tile = Coord4D.get(tileEntity).getFromSide(side).getTileEntity(pointer.getWorldObj()); Coord4D coord = Coord4D.get(tileEntity).getFromSide(side);
if(tile != null && isNode(tile) && !iteratedNodes.contains(tile)) if(coord.exists(pointer.getWorldObj()))
{ {
loop(tile); TileEntity tile = coord.getTileEntity(pointer.getWorldObj());
if(tile != null && isNode(tile) && !iteratedNodes.contains(tile))
{
loop(tile);
}
} }
} }
} }