mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Usage profilesProvider
This commit is contained in:
parent
af2dcec8cd
commit
2ed4abf9b0
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
import java.util.Set;
|
||||
|
||||
public class ProfilesResponse extends SimpleResponse {
|
||||
@Deprecated
|
||||
public static List<ClientProfile> getListVisibleProfiles(LaunchServer server, Client client) {
|
||||
List<ClientProfile> profileList;
|
||||
Set<ClientProfile> 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)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue