mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Fix javaPath not looking for .exe (#7590)
I never tested this on windows and finally decided to get to the bottom of all the weird reports ive been getting
This commit is contained in:
parent
5117a5bd71
commit
d66a3b80ae
1 changed files with 2 additions and 1 deletions
|
|
@ -316,7 +316,8 @@ public class Vars implements Loadable{
|
|||
logicVars = new GlobalVars();
|
||||
javaPath =
|
||||
new Fi(OS.prop("java.home")).child("bin/java").exists() ? new Fi(OS.prop("java.home")).child("bin/java").absolutePath() :
|
||||
Core.files.local("jre/bin/java").exists() ? Core.files.local("jre/bin/java").absolutePath() :
|
||||
Core.files.local("jre/bin/java").exists() ? Core.files.local("jre/bin/java").absolutePath() : // Unix
|
||||
Core.files.local("jre/bin/java.exe").exists() ? Core.files.local("jre/bin/java.exe").absolutePath() : // Windows
|
||||
"java";
|
||||
|
||||
state = new GameState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue