From 9e336c8a6fac14f3aecb9ce79a1a119c3f272511 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 13 Jun 2019 16:19:59 -0700 Subject: [PATCH] Reduce console spam --- .../nossr50/util/experience/ExperienceManager.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/experience/ExperienceManager.java b/src/main/java/com/gmail/nossr50/util/experience/ExperienceManager.java index 89b00fafa..7370ded48 100644 --- a/src/main/java/com/gmail/nossr50/util/experience/ExperienceManager.java +++ b/src/main/java/com/gmail/nossr50/util/experience/ExperienceManager.java @@ -61,6 +61,8 @@ public class ExperienceManager { mcMMO.p.getLogger().info("Registering combat XP values..."); for (String entityString : platformSafeMap.keySet()) { //Iterate over all EntityType(s) + boolean foundMatch = false; + for (EntityType type : EntityType.values()) { //Match ignoring case if (entityString.equalsIgnoreCase(type.name())) { @@ -70,11 +72,13 @@ public class ExperienceManager { } //Match found combatXPMultiplierMap.put(type, platformSafeMap.get(entityString)); - } else { - //Log an error so the admin can deal with figuring it out - mcMMO.p.getLogger().severe("No entity could be matched for the combat experience config value named - " + entityString); + foundMatch = true; } } + + if(!foundMatch) { + mcMMO.p.getLogger().severe("No entity could be matched for the combat experience config value named - " + entityString); + } } }