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

@@ -39,11 +39,11 @@ public class CommandProfileCreate extends CommandProfileBase {
return;
}
EntityPlayer player = (EntityPlayer)sender;
if(ProfileController.getProfile(player) == null) {
if(ProfileController.Instance.getProfile(player) == null) {
sendError(sender, "Profile not found.");
return;
}
ProfileOperation result = ProfileController.createSlotInternal(ProfileController.getProfile(player));
ProfileOperation result = ProfileController.Instance.createSlotInternal(ProfileController.Instance.getProfile(player));
if(result.getResult() == EnumProfileOperation.SUCCESS) {
sendResult(sender, "New profile slot created successfully.");
} else if(result.getResult() == EnumProfileOperation.LOCKED) {