fix: preserve profile data on relog

This commit is contained in:
Kam committed 2025-08-28 22:18:16 -04:00
1 parent 88b5be2f25
commit 82e97935d9
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);
}
}