diff --git a/installer/Installer.java b/installer/Installer.java index 7c0960f..4759f6c 100644 --- a/installer/Installer.java +++ b/installer/Installer.java @@ -511,6 +511,7 @@ public void run() } //check for multimc + if (targetDir.exists()) for(File f : targetDir.listFiles()){ if(f.getName().equalsIgnoreCase("multimc.exe") || (f.getName().equalsIgnoreCase("multimc") && f.isFile()) || f.getName().equalsIgnoreCase("multimc.cfg")){ ArrayList ilist = new ArrayList(); @@ -1287,7 +1288,8 @@ private String checkForJava14(String path) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); fileChooser.setFileHidingEnabled(false); - fileChooser.setCurrentDirectory(new File(System.getProperty("java.home"))); + if (isWindows) + fileChooser.setCurrentDirectory(new File(System.getenv("ProgramFiles"))); fileChooser.setFileFilter(new FileFilter() { @Override public boolean accept(File f) {