Merge pull request #206 from KAMKEEL/codex/fix-profile-controller-data-saving-issues

Avoid profile data reset on relog
This commit is contained in:
Kam authored and GitHub committed 2025-08-28 22:18:26 -04:00
commit 68fb45edfd
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);
}
}