mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-18 19:39:12 +00:00
Fix crash when clicking blocks with tools with no NBT
This commit is contained in:
1 parent
c94fc4310f
commit
491132cbae
2 files changed
+6
No files matched your search
@@ -36,6 +36,9 @@ public abstract class Weapon extends ToolCore implements IBattlegearWeapon
|
||||
@Override
|
||||
public float getDigSpeed (ItemStack stack, Block block, int meta)
|
||||
{
|
||||
if(!stack.hasTagCompound())
|
||||
return 0f;
|
||||
|
||||
if (stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Broken"))
|
||||
return 0.1f;
|
||||
|
||||
|
||||
Reference in new issue
Block a user