1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-05-16 15:16:23 +02:00

fix big oopsie

This commit is contained in:
nossr50 2024-11-03 14:27:09 -08:00
parent 4ba85aa444
commit f0973f2500

@ -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<Material, Integer> 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<Material, Integer> 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;