Skip to content

Commit

Permalink
Merge branch 'development' into networkRefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
unpairedbracket committed Apr 6, 2015
2 parents f4a6fb8 + cbb8cbc commit 1997054
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/main/java/mekanism/client/ThreadSparkle.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,16 @@ public void loop(TileEntity tileEntity)

for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
{
TileEntity tile = Coord4D.get(tileEntity).getFromSide(side).getTileEntity(pointer.getWorldObj());

if(tile != null && isNode(tile) && !iteratedNodes.contains(tile))
Coord4D coord = Coord4D.get(tileEntity).getFromSide(side);
if(coord.exists(pointer.getWorldObj()))
{
loop(tile);
TileEntity tile = coord.getTileEntity(pointer.getWorldObj());

if(tile != null && isNode(tile) && !iteratedNodes.contains(tile))
{
loop(tile);
}
}
}
}
Expand Down

0 comments on commit 1997054

Please sign in to comment.