mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-25 14:34:23 +00:00
Prevent NPE if block is not a tile entity.
This commit is contained in:
1 parent
4274675234
commit
badde101ce
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user