diff --git a/build.properties b/build.properties index 40af07d..40879d9 100644 --- a/build.properties +++ b/build.properties @@ -1,2 +1,2 @@ minecraft_version=1.7.2 -forge_version=10.12.0.1024 \ No newline at end of file +forge_version=10.12.0.1033 \ No newline at end of file diff --git a/src/mantle/blocks/abstracts/InventoryBlock.java b/src/mantle/blocks/abstracts/InventoryBlock.java index 1a967c9..e85bc53 100644 --- a/src/mantle/blocks/abstracts/InventoryBlock.java +++ b/src/mantle/blocks/abstracts/InventoryBlock.java @@ -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)