slightly better logs

This commit is contained in:
nossr50
2025-10-05 13:46:13 -07:00
parent 00c0b2e5ec
commit 5dfea51c5e
3 changed files with 10 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ public class PotionConfig extends LegacyConfigLoader {
}
}
int totalPotions = potionsLoaded + incompatible + failures;
int totalPotions = potionsLoaded + failures;
mcMMO.p.getLogger()
.info("Loaded " + potionsLoaded + " of " + totalPotions + " Alchemy potions.");

View File

@@ -99,7 +99,10 @@ public class TreasureConfig extends BukkitConfig {
type + "." + treasureName + ".Data");
if (material == null) {
reason.add("Invalid material: " + materialName);
LogUtils.debug(mcMMO.p.getLogger(),
String.format("Material '%s' for treasure '%s' is not recognized."
+ " Skipping...", materialName, treasureName));
continue;
}
if (amount <= 0) {