Add null check to HarvestTool.onBlockStartBreak

https://github.com/Vazkii/ThaumicTinkerer/issues/15
This commit is contained in:
Vazkii authored and mDiyo committed 2013-08-30 23:41:35 -07:00
1 parent d641a8eed9
commit be9a6d14f2
1 file changed
+3
@@ -22,6 +22,9 @@ public abstract class HarvestTool extends ToolCore
@Override
public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPlayer player)
{
if(!stack.hasTagCompound())
return false;
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
World world = player.worldObj;
int bID = player.worldObj.getBlockId(x, y, z);