mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +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
|
// replace item in main hand
|
||||||
heldItem.setItemMeta(newMeta);
|
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 {
|
} else {
|
||||||
// item is not a hoe
|
// item is not a hoe
|
||||||
|
|||||||
Reference in New Issue
Block a user