Merge pull request #60 from gchpaco/master

Fix a couple crash bugs I ran into
This commit is contained in:
Justin Aquadro committed 2015-04-13 22:05:18 -04:00
commit 21b56314d3
2 files changed
+3 -1

No files matched your search

@@ -342,7 +342,8 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
return false;
}
if (side.ordinal() != getTileEntity(world, x, y, z).getDirection())
if (getTileEntity(world, x, y, z) == null) return true;
if (side.ordinal() != getTileEntity(world, x, y, z).getDirection())
return true;
return false;
@@ -208,6 +208,7 @@ public class TileEntityController extends TileEntity implements IDrawerGroup, IS
TileEntity te = worldObj.getTileEntity(x, y, z);
if (te == null || !(te instanceof IDrawerGroup))
return;
if (depth > DEPTH_LIMIT) return;
//if (te instanceof TileEntityController && depth < DEPTH_LIMIT) {
// populateNeighborNodes(x, y, z, depth + 1);