mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-05 22:31:45 +00:00
make sure to do this for hoes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user