mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-22 21:10:00 +00:00
solve NPE w/ mantle's debugging interfaces w/ empty hands
This commit is contained in:
1 parent
be29b7d452
commit
f3f6ea2251
2 files changed
+2
-3
No files matched your search
+1
-1
@@ -1,2 +1,2 @@
|
||||
minecraft_version=1.7.2
|
||||
forge_version=10.12.0.1024
|
||||
forge_version=10.12.0.1033
|
||||
@@ -200,8 +200,7 @@ public abstract class InventoryBlock extends BlockContainer
|
||||
@Override
|
||||
public void onBlockClicked (World world, int x, int y, int z, EntityPlayer player)
|
||||
{
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER && player.getHeldItem().getItem() == Items.stick)
|
||||
;
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER && player.getHeldItem() != null && player.getHeldItem().getItem() != null && player.getHeldItem().getItem() == Items.stick)
|
||||
{
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if (te instanceof IDebuggable)
|
||||
|
||||
Reference in new issue
Block a user