diff --git a/decompiler/src/main/java/dev/openrs2/decompiler/Decompiler.java b/decompiler/src/main/java/dev/openrs2/decompiler/Decompiler.java index 37c99999..eb1efc3f 100644 --- a/decompiler/src/main/java/dev/openrs2/decompiler/Decompiler.java +++ b/decompiler/src/main/java/dev/openrs2/decompiler/Decompiler.java @@ -20,12 +20,16 @@ public final class Decompiler implements Closeable { private static Path getDestination(String archive) { archive = archive.replaceAll("(?:_gl)?[.]jar$", ""); - if (archive.equals("runescape")) { + switch (archive) { + case "runescape": archive = "client"; - } else if (archive.equals("jaggl")) { + break; + case "jaggl": archive = "gl"; - } else if (archive.equals("jaggl_dri")) { + break; + case "jaggl_dri": archive = "gl-dri"; + break; } return Paths.get("nonfree").resolve(archive).resolve("src/main/java"); }