[FIX] Build without proguard

This commit is contained in:
Gravita 2023-10-28 18:49:07 +07:00
parent 75f51c7727
commit e1429356df

View file

@ -133,6 +133,9 @@ public String getName() {
@Override @Override
public Path process(Path inputFile) throws IOException { public Path process(Path inputFile) throws IOException {
if (!component.enabled) {
return inputFile;
}
LauncherBuildTask task = server.launcherBinary.getTaskBefore((x) -> proguardTaskName.equals(x.getName())).get(); LauncherBuildTask task = server.launcherBinary.getTaskBefore((x) -> proguardTaskName.equals(x.getName())).get();
Path lastPath = server.launcherBinary.nextPath(task); Path lastPath = server.launcherBinary.nextPath(task);
if(Files.notExists(lastPath)) { if(Files.notExists(lastPath)) {