mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 07:17:27 +00:00
Fix Profile Load Saving
This commit is contained in:
1 parent
5b201c0f0e
commit
2ae3a32ad1
2 files changed
+13
-9
No files matched your search
@@ -61,9 +61,9 @@ public class ServerTickHandler {
|
||||
playerData.onLogin();
|
||||
}
|
||||
|
||||
ProfileController.Instance.login(player);
|
||||
SyncController.syncPlayer(player);
|
||||
SyncController.syncEffects(player);
|
||||
ProfileController.Instance.login(player);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
@@ -72,5 +72,8 @@ public class ServerTickHandler {
|
||||
if (playerData != null) {
|
||||
playerData.onLogout();
|
||||
}
|
||||
|
||||
// Save and unload the player's profile data on logout
|
||||
ProfileController.Instance.logout(event.player);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user