return item lore back rather than nulling it

This commit is contained in:
hyperdefined
2023-02-20 22:02:48 -05:00
parent 72b8b31779
commit 4ea9e1600b
7 changed files with 19 additions and 61 deletions

View File

@@ -86,11 +86,6 @@ public class BlocksMined implements Listener {
String blocksMinedFormatted = toolStats.numberFormat.formatInt(blocksMined);
List<String> newLore = toolStats.itemLore.addItemLore(meta, "{blocks}", blocksMinedFormatted, "blocks-mined");
// if the list returned null, don't add it
if (newLore == null) {
return;
}
// do we add the lore based on the config?
if (toolStats.checkConfig(playerTool, "blocks-mined")) {
meta.setLore(newLore);