mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
Add null check to HarvestTool.onBlockStartBreak
https://github.com/Vazkii/ThaumicTinkerer/issues/15
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user