mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 00:39:40 +00:00
Merge pull request #206 from KAMKEEL/codex/fix-profile-controller-data-saving-issues
Avoid profile data reset on relog
This commit is contained in:
1 file changed
+8
-1
@@ -138,9 +138,16 @@ public class ProfileController implements IProfileHandler {
|
||||
if (!profile.getSlots().containsKey(profile.currentSlotId)) {
|
||||
profile.currentSlotId = 0;
|
||||
}
|
||||
|
||||
profile.player = player;
|
||||
activeProfiles.put(player.getUniqueID(), profile);
|
||||
loadSlotData(player);
|
||||
|
||||
PlayerData pdata = PlayerData.get(player);
|
||||
if (profile.getSlots().containsKey(pdata.profileSlot)) {
|
||||
profile.currentSlotId = pdata.profileSlot;
|
||||
}
|
||||
|
||||
saveSlotData(player);
|
||||
verifySlotQuests(profile.player);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user