From 44e840734cb4724ba3b2d9c3dcce6841732c24f8 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Sun, 9 Jun 2024 16:49:34 +0700 Subject: [PATCH] [FIX] Compile fix --- .../base/events/request/CurrentUserRequestEvent.java | 3 +-- .../pro/gravit/launcher/base/profiles/PlayerProfile.java | 5 +++-- .../pro/gravit/launcher/core/backend/LauncherBackendAPI.java | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/base/events/request/CurrentUserRequestEvent.java b/LauncherAPI/src/main/java/pro/gravit/launcher/base/events/request/CurrentUserRequestEvent.java index 3f9f9f3c..fbb40ddd 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/base/events/request/CurrentUserRequestEvent.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/base/events/request/CurrentUserRequestEvent.java @@ -46,10 +46,9 @@ public UUID getUUID() { return playerProfile.getUUID(); } - @SuppressWarnings("unchecked") @Override public Map getAssets() { - return (Map) playerProfile.getAssets(); + return playerProfile.getAssets(); } @Override diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/PlayerProfile.java b/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/PlayerProfile.java index 00862e54..083bc4d4 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/PlayerProfile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/base/profiles/PlayerProfile.java @@ -60,9 +60,10 @@ public UUID getUUID() { return uuid; } + @SuppressWarnings({"unchecked", "rawtypes"}) @Override - public Map getAssets() { - return assets; + public Map getAssets() { + return (Map) assets; } @Override diff --git a/LauncherCore/src/main/java/pro/gravit/launcher/core/backend/LauncherBackendAPI.java b/LauncherCore/src/main/java/pro/gravit/launcher/core/backend/LauncherBackendAPI.java index ef0fd817..36a01f49 100644 --- a/LauncherCore/src/main/java/pro/gravit/launcher/core/backend/LauncherBackendAPI.java +++ b/LauncherCore/src/main/java/pro/gravit/launcher/core/backend/LauncherBackendAPI.java @@ -48,6 +48,7 @@ interface ClientProfileSettings { List getEnabledOptionals(); void enableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback); void disableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback); + ClientProfileSettings clone(); enum Flag {