mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
Fine Tuning Profile Controller Instance
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user