Skip to content

Commit

Permalink
2.2.025
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Nov 6, 2024
1 parent 406a7ba commit 6f92baf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 2.2.025
Fixed NullPointerException spam when processing XP for child skills

Version 2.2.024
Fixed errors when Fishing or using Shake ability
Significant optimizations made to reading new chunks for mcMMO
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.2.024</version>
<version>2.2.025</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.List;
import java.util.Map;

import static com.gmail.nossr50.util.skills.SkillTools.isChildSkill;
import static com.gmail.nossr50.util.text.ConfigStringUtils.getConfigEntityTypeString;
import static com.gmail.nossr50.util.text.ConfigStringUtils.getMaterialConfigString;

Expand All @@ -36,20 +35,16 @@ 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<>();
instance.blockExperienceMap.put(skill, experienceMap);
for (Material material : Material.values()) {
int xp = instance.getConfigXp(skill, material);

if (xp > 0) {
experienceMap.put(material, xp);
}
}
instance.blockExperienceMap.put(skill, experienceMap);

}
}

Expand Down

0 comments on commit 6f92baf

Please sign in to comment.