Fixed leveled skills & attributes not saving when switching classes

This commit is contained in:
ASangarin 2020-10-20 02:04:17 +02:00
parent 7d227c874b
commit 28c4653179

View File

@ -55,7 +55,7 @@ public class SavedClassInformation {
public SavedClassInformation(PlayerData player) { public SavedClassInformation(PlayerData player) {
this(player.getLevel(), player.getExperience(), player.getSkillPoints(), player.getAttributePoints(), this(player.getLevel(), player.getExperience(), player.getSkillPoints(), player.getAttributePoints(),
player.getAttributeReallocationPoints(), player.mapSkillLevels(), player.getAttributes().mapPoints()); player.getAttributeReallocationPoints(), player.getAttributes().mapPoints(), player.mapSkillLevels());
} }
public SavedClassInformation(DefaultPlayerData data) { public SavedClassInformation(DefaultPlayerData data) {
@ -129,7 +129,7 @@ public class SavedClassInformation {
} }
public void registerAttributeLevel(PlayerAttribute attribute, int level) { public void registerAttributeLevel(PlayerAttribute attribute, int level) {
registerSkillLevel(attribute.getId(), level); registerAttributeLevel(attribute.getId(), level);
} }
public void registerAttributeLevel(String attribute, int level) { public void registerAttributeLevel(String attribute, int level) {