[FIX] Доступ из модуля к созданию своих защит

This commit is contained in:
Gravit 2019-10-19 23:57:23 +07:00
parent b9761637db
commit 0cab4f254e
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -9,9 +9,11 @@ public class LauncherGuardManager {
public static LauncherGuardInterface guard;
public static void initGuard(boolean clientInstance) {
if(guard == null)
{
LauncherConfig config = Launcher.getConfig();
switch (config.guardType) {
case "gravitguard": {
case "stdguard": {
guard = new LauncherStdGuard();
break;
}
@ -27,6 +29,7 @@ public static void initGuard(boolean clientInstance) {
guard = new LauncherNoGuard();
}
}
}
guard.init(clientInstance);
}