mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-21 04:32:37 +00:00
Merge pull request #60 from gchpaco/master
Fix a couple crash bugs I ran into
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user