diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java index 99d3d31a..b1a2c032 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java @@ -9,6 +9,7 @@ import pro.gravit.launchserver.auth.protect.StdProtectHandler; import pro.gravit.launchserver.auth.provider.AcceptAuthProvider; import pro.gravit.launchserver.command.Command; +import pro.gravit.launchserver.components.ProGuardComponent; import pro.gravit.launchserver.config.LaunchServerConfig; import pro.gravit.utils.helper.FormatHelper; import pro.gravit.utils.helper.LogHelper; @@ -131,7 +132,7 @@ public void invoke(String... args) { printCheckResult(LogHelper.Level.INFO, "sign", "", true); } - if (!config.launcher.enabledProGuard) { + if (config.components.values().stream().noneMatch(c -> c instanceof ProGuardComponent)) { printCheckResult(LogHelper.Level.INFO, "launcher.enabledProGuard", "proguard not enabled", false); } else { printCheckResult(LogHelper.Level.INFO, "launcher.enabledProGuard", "", true);