From 2ed4abf9b0c8ed9a1911350cf87a083af3c0c149 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Fri, 26 Jul 2024 01:27:01 +0700 Subject: [PATCH] [FIX] Usage profilesProvider --- .../launchserver/socket/response/auth/ProfilesResponse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java index 39058b76..6e5be16a 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java @@ -13,6 +13,7 @@ import java.util.Set; public class ProfilesResponse extends SimpleResponse { + @Deprecated public static List getListVisibleProfiles(LaunchServer server, Client client) { List profileList; Set serverProfiles = server.getProfiles(); @@ -40,6 +41,6 @@ public void execute(ChannelHandlerContext ctx, Client client) { sendError("Access denied"); return; } - sendResult(new ProfilesRequestEvent(getListVisibleProfiles(server, client))); + sendResult(new ProfilesRequestEvent(server.config.profileProvider.getProfiles(client))); } }