@@ -175,7 +175,7 @@ public void start() {
175175 installDirectoryPanel .add (installDirectoryPicker );
176176
177177 installAsModCheckbox = new JCheckBox ("Install as Fabric Mod" , false );
178- installAsModCheckbox .setToolTipText ("If this box is checked, Iris will be installed to your mods \n folder," +
178+ installAsModCheckbox .setToolTipText ("If this box is checked, Iris will be installed to your mods \n folder, " +
179179 "allowing you to use Iris with other Fabric mods!" );
180180 installAsModCheckbox .setHorizontalTextPosition (SwingConstants .LEFT );
181181 installAsModCheckbox .setAlignmentX (Component .CENTER_ALIGNMENT );
@@ -406,13 +406,17 @@ public boolean installFromZip(File zip) {
406406
407407 ZipEntry entry = zipIn .getNextEntry ();
408408 // iterates over entries in the zip file
409+ if (!installAsMod ) {
410+ getInstallDir ().resolve ("iris-reserved/" ).toFile ().mkdir ();
411+ }
409412 while (entry != null ) {
410413 String entryName = entry .getName ();
411414
412415 if (!installAsMod && entryName .startsWith ("mods/" )) {
413416 entryName = entryName .replace ("mods/" , "iris-reserved/" + selectedVersion + "/" );
414417 }
415418
419+
416420 File filePath = getInstallDir ().resolve (entryName ).toFile ();
417421 if (!entry .isDirectory ()) {
418422 // if the entry is a file, extracts it
@@ -433,7 +437,7 @@ public boolean installFromZip(File zip) {
433437 zipIn .close ();
434438 return true ;
435439 } catch (IOException e ) {
436- e .getCause (). printStackTrace ();
440+ e .printStackTrace ();
437441 return false ;
438442 }
439443 }
0 commit comments