mirror of
https://github.com/SKCraft/Launcher.git
synced 2025-02-16 01:41:22 +01:00
Change Java runtime selector to show "unknown" instead of "null"
This commit is contained in:
parent
6530ecee80
commit
53ba054c2c
@ -108,6 +108,8 @@ public class JavaRuntime implements Comparable<JavaRuntime> {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
String version = this.version != null ? this.version : "unknown";
|
||||
|
||||
return String.format("Java %s (%s) (%s)", version, is64Bit ? "64-bit" : "32-bit", dir);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user