Prevent NPE if block is not a tile entity.

This commit is contained in:
Graham Hughes committed 2015-04-13 18:26:50 -07:00
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;