make sure to do this for hoes

This commit is contained in:
hyperdefined
2025-01-26 18:16:03 -05:00
parent a3f3e0552d
commit c597b4ffeb

View File

@@ -78,6 +78,13 @@ public class BlockBreak implements Listener {
// replace item in main hand
heldItem.setItemMeta(newMeta);
}
} else {
// item is a hoe, but not breaking crops
ItemMeta newMeta = toolStats.itemLore.updateBlocksMined(heldItem, 1);
if (newMeta != null) {
// replace item in main hand
heldItem.setItemMeta(newMeta);
}
}
} else {
// item is not a hoe