From f0973f2500c6995993c6120745821680eb59b4ce Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 3 Nov 2024 14:27:09 -0800 Subject: [PATCH] fix big oopsie --- .../config/experience/ExperienceConfig.java | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/experience/ExperienceConfig.java b/src/main/java/com/gmail/nossr50/config/experience/ExperienceConfig.java index fd6514a9a..3575eecff 100644 --- a/src/main/java/com/gmail/nossr50/config/experience/ExperienceConfig.java +++ b/src/main/java/com/gmail/nossr50/config/experience/ExperienceConfig.java @@ -35,23 +35,22 @@ public class ExperienceConfig extends BukkitConfig { public static ExperienceConfig getInstance() { if (instance == null) { instance = new ExperienceConfig(); - } - - for (PrimarySkillType skill : PrimarySkillType.values()) { - // Skip child skills - if (isChildSkill(skill)) { - continue; - } - - final Map experienceMap = new HashMap<>(); - for (Material material : Material.values()) { - int xp = instance.getConfigXp(skill, material); - - if (xp > 0) { - experienceMap.put(material, xp); + for (PrimarySkillType skill : PrimarySkillType.values()) { + // Skip child skills + if (isChildSkill(skill)) { + continue; } + + final Map experienceMap = new HashMap<>(); + for (Material material : Material.values()) { + int xp = instance.getConfigXp(skill, material); + + if (xp > 0) { + experienceMap.put(material, xp); + } + } + instance.blockExperienceMap.put(skill, experienceMap); } - instance.blockExperienceMap.put(skill, experienceMap); } return instance;