From e1429356df7815782dfa333d5a98f3c2cf5169b9 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Sat, 28 Oct 2023 18:49:07 +0700 Subject: [PATCH] [FIX] Build without proguard --- .../pro/gravit/launchserver/components/ProGuardComponent.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/components/ProGuardComponent.java b/LaunchServer/src/main/java/pro/gravit/launchserver/components/ProGuardComponent.java index 14efc8f7..520a80f4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/components/ProGuardComponent.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/components/ProGuardComponent.java @@ -133,6 +133,9 @@ public String getName() { @Override public Path process(Path inputFile) throws IOException { + if (!component.enabled) { + return inputFile; + } LauncherBuildTask task = server.launcherBinary.getTaskBefore((x) -> proguardTaskName.equals(x.getName())).get(); Path lastPath = server.launcherBinary.nextPath(task); if(Files.notExists(lastPath)) {