[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 LauncherGuardInterface guard;
public static void initGuard(boolean clientInstance) { public static void initGuard(boolean clientInstance) {
if(guard == null)
{
LauncherConfig config = Launcher.getConfig(); LauncherConfig config = Launcher.getConfig();
switch (config.guardType) { switch (config.guardType) {
case "gravitguard": { case "stdguard": {
guard = new LauncherStdGuard(); guard = new LauncherStdGuard();
break; break;
} }
@ -27,6 +29,7 @@ public static void initGuard(boolean clientInstance) {
guard = new LauncherNoGuard(); guard = new LauncherNoGuard();
} }
} }
}
guard.init(clientInstance); guard.init(clientInstance);
} }