Skip to content

Commit

Permalink
fix big oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Nov 3, 2024
1 parent 4ba85aa commit f0973f2
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,22 @@ private ExperienceConfig() {
public static ExperienceConfig getInstance() {
if (instance == null) {
instance = new ExperienceConfig();
}

for (PrimarySkillType skill : PrimarySkillType.values()) {
// Skip child skills
if (isChildSkill(skill)) {
continue;
}
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);
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);
if (xp > 0) {
experienceMap.put(material, xp);
}
}
instance.blockExperienceMap.put(skill, experienceMap);
}
instance.blockExperienceMap.put(skill, experienceMap);
}

return instance;
Expand Down

0 comments on commit f0973f2

Please sign in to comment.