diff --git a/launcher/src/main/java/com/skcraft/launcher/launch/JavaRuntime.java b/launcher/src/main/java/com/skcraft/launcher/launch/JavaRuntime.java index 5dc7963..7dffcb5 100644 --- a/launcher/src/main/java/com/skcraft/launcher/launch/JavaRuntime.java +++ b/launcher/src/main/java/com/skcraft/launcher/launch/JavaRuntime.java @@ -33,11 +33,7 @@ public class JavaRuntime implements Comparable { String[] parts = version.split("\\."); - if (parts.length < 2) { - throw new IllegalArgumentException("Invalid Java runtime version: " + version); - } - - if (parts[0].equals("1")) { + if (parts[0].equals("1") && parts.length > 1) { return Integer.parseInt(parts[1]); } else { return Integer.parseInt(parts[0]);