diff --git a/src/main/java/knightminer/tcomplement/plugin/chisel/items/ItemChisel.java b/src/main/java/knightminer/tcomplement/plugin/chisel/items/ItemChisel.java index 39ceb31..7cdb1f3 100644 --- a/src/main/java/knightminer/tcomplement/plugin/chisel/items/ItemChisel.java +++ b/src/main/java/knightminer/tcomplement/plugin/chisel/items/ItemChisel.java @@ -123,6 +123,13 @@ public boolean supportsMode(EntityPlayer player, ItemStack stack, IChiselMode mo @Optional.Method(modid="chisel") @Override public boolean onChisel(World world, EntityPlayer player, ItemStack chisel, ICarvingVariation target) { + if (ToolHelper.getCurrentDurability(chisel) <= 0) { + NBTTagCompound tags = TagUtil.getTagSafe(chisel); + if (tags.getCompoundTag("chiseldata").hasKey("target")) { + tags.getCompoundTag("chiseldata").removeTag("target"); + chisel.setTagCompound(tags); + } + } return true; }