removed more debugs

This commit is contained in:
hyperdefined
2025-01-26 13:24:45 -05:00
parent 390aeac226
commit b025fd0b46
3 changed files with 0 additions and 7 deletions

View File

@@ -83,7 +83,6 @@ public class BlocksMined implements Listener {
// update the blocks mined
ItemStack newItem = toolStats.itemLore.updateBlocksMined(heldItem, 1);
if (newItem != null) {
toolStats.logger.info(newItem.toString());
// replace item in main hand
inventory.setItemInMainHand(newItem);
}

View File

@@ -78,7 +78,6 @@ public class InventoryOpen implements Listener {
continue;
}
String hash = toolStats.hashMaker.makeHash(itemStack.getType(), owner, timestamp);
toolStats.logger.info(hash);
container.set(toolStats.hash, PersistentDataType.STRING, hash);
}
}

View File

@@ -283,15 +283,12 @@ public class ItemLore {
PersistentDataContainer container = meta.getPersistentDataContainer();
// check for tokens
if (toolStats.config.getBoolean("tokens.enabled")) {
toolStats.logger.info("tokens are enabled!");
// if the item has this token, then continue
// if the item does not, ignore
boolean validTokens = toolStats.itemChecker.checkTokens(container, "blocks-mined");
if (!validTokens) {
return null;
}
} else {
toolStats.logger.info("tokens are disabled!");
}
// read the current stats from the item
@@ -319,10 +316,8 @@ public class ItemLore {
}
List<Component> newLore = toolStats.itemLore.updateItemLore(meta, oldLine, newLine);
meta.lore(newLore);
toolStats.logger.info("adding lore!");
}
clone.setItemMeta(meta);
toolStats.logger.info("reached end of function!");
return clone;
}