mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 21:54:08 +00:00
fix: preserve profile data on relog
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user