Reformat for mapBoundSkills method.

This commit is contained in:
Ka0rX 2023-03-19 14:04:06 +01:00
parent c618b0267e
commit 9e16e63bf5
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ public class SavedClassInformation {
data.getNodeLevels().forEach((node, level) -> nodeLevels.put(node.getFullId(), level));
data.getNodeTimesClaimed().forEach((key, val) -> nodeTimesClaimed.put(key, val));
data.mapBoundSkills().forEach((slot, skill) -> boundSkills.put(slot, skill.getSkill().getHandler().getId()));
data.mapBoundSkills().forEach((slot, skill) -> boundSkills.put(slot, skill));
}
public int getLevel() {

View File

@ -158,7 +158,7 @@ public class YAMLPlayerDataManager extends PlayerDataManager {
data.getItemClaims().forEach((key, times) -> config.set("times-claimed." + key, times));
Map<Integer,String> boundSkills = new HashMap<>();
data.mapBoundSkills().forEach((slot,classSkill)->config.set("bound-skills."+slot,classSkill.getSkill().getHandler().getId()));
data.mapBoundSkills().forEach((slot,skill)->config.set("bound-skills."+slot,skill));
config.set("bound-skills", boundSkills);
config.set("attribute", null);