Fine Tuning Profile Controller Instance

This commit is contained in:
Kam committed 2025-02-20 21:44:15 -05:00
1 parent c3538836be
commit 83c16ae419
8 files changed
+51 -51

No files matched your search

@@ -376,9 +376,9 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
public synchronized void save() {
// Don't Save this is a Modification of a Profile's PlayerData
Profile profile = ProfileController.getProfile(UUID.fromString(uuid));
Profile profile = ProfileController.Instance.getProfile(UUID.fromString(uuid));
if(profile != null && profile.currentSlotId != this.profileSlot){
ProfileController.saveOffline(profile, UUID.fromString(uuid));
ProfileController.Instance.saveOffline(profile, UUID.fromString(uuid));
return;
}