forked from Upstream/mmocore
Reformat for mapBoundSkills method.
This commit is contained in:
parent
c618b0267e
commit
9e16e63bf5
@ -116,7 +116,7 @@ public class SavedClassInformation {
|
|||||||
data.getNodeLevels().forEach((node, level) -> nodeLevels.put(node.getFullId(), level));
|
data.getNodeLevels().forEach((node, level) -> nodeLevels.put(node.getFullId(), level));
|
||||||
data.getNodeTimesClaimed().forEach((key, val) -> nodeTimesClaimed.put(key, val));
|
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() {
|
public int getLevel() {
|
||||||
|
@ -158,7 +158,7 @@ public class YAMLPlayerDataManager extends PlayerDataManager {
|
|||||||
data.getItemClaims().forEach((key, times) -> config.set("times-claimed." + key, times));
|
data.getItemClaims().forEach((key, times) -> config.set("times-claimed." + key, times));
|
||||||
|
|
||||||
Map<Integer,String> boundSkills = new HashMap<>();
|
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("bound-skills", boundSkills);
|
||||||
|
|
||||||
config.set("attribute", null);
|
config.set("attribute", null);
|
||||||
|
Loading…
Reference in New Issue
Block a user