We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f3e05 commit c597b4fCopy full SHA for c597b4f
src/main/java/lol/hyper/toolstats/events/BlockBreak.java
@@ -78,6 +78,13 @@ public void onBreak(BlockBreakEvent event) {
78
// replace item in main hand
79
heldItem.setItemMeta(newMeta);
80
}
81
+ } else {
82
+ // item is a hoe, but not breaking crops
83
+ ItemMeta newMeta = toolStats.itemLore.updateBlocksMined(heldItem, 1);
84
+ if (newMeta != null) {
85
+ // replace item in main hand
86
+ heldItem.setItemMeta(newMeta);
87
+ }
88
89
} else {
90
// item is not a hoe
0 commit comments