[FIX] Usage profilesProvider

This commit is contained in:
Gravita 2024-07-26 01:27:01 +07:00
parent af2dcec8cd
commit 2ed4abf9b0
No known key found for this signature in database
GPG key ID: 543A8F335C9CD633

View file

@ -13,6 +13,7 @@
import java.util.Set; import java.util.Set;
public class ProfilesResponse extends SimpleResponse { public class ProfilesResponse extends SimpleResponse {
@Deprecated
public static List<ClientProfile> getListVisibleProfiles(LaunchServer server, Client client) { public static List<ClientProfile> getListVisibleProfiles(LaunchServer server, Client client) {
List<ClientProfile> profileList; List<ClientProfile> profileList;
Set<ClientProfile> serverProfiles = server.getProfiles(); Set<ClientProfile> serverProfiles = server.getProfiles();
@ -40,6 +41,6 @@ public void execute(ChannelHandlerContext ctx, Client client) {
sendError("Access denied"); sendError("Access denied");
return; return;
} }
sendResult(new ProfilesRequestEvent(getListVisibleProfiles(server, client))); sendResult(new ProfilesRequestEvent(server.config.profileProvider.getProfiles(client)));
} }
} }