mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
Fixed leveled skills & attributes not saving when switching classes
This commit is contained in:
parent
7d227c874b
commit
28c4653179
@ -55,7 +55,7 @@ public class SavedClassInformation {
|
||||
|
||||
public SavedClassInformation(PlayerData player) {
|
||||
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) {
|
||||
@ -129,7 +129,7 @@ public class SavedClassInformation {
|
||||
}
|
||||
|
||||
public void registerAttributeLevel(PlayerAttribute attribute, int level) {
|
||||
registerSkillLevel(attribute.getId(), level);
|
||||
registerAttributeLevel(attribute.getId(), level);
|
||||
}
|
||||
|
||||
public void registerAttributeLevel(String attribute, int level) {
|
||||
|
Loading…
Reference in New Issue
Block a user