diff --git a/src/forgemodpackbuilder/GUI.java b/src/forgemodpackbuilder/GUI.java index 886b6d3..d045f78 100644 --- a/src/forgemodpackbuilder/GUI.java +++ b/src/forgemodpackbuilder/GUI.java @@ -297,6 +297,10 @@ public class GUI extends javax.swing.JFrame { OeffnenDialogClass a = new OeffnenDialogClass(); System.out.println("GUI = " + datei); UnZip.modpack = datei; + JOptionPane.showMessageDialog(null, "Bitte geben sie einen Installationsort für das Modpack!"); + OeffnenDialogClass.main(null); + System.out.println("GUI = " + datei); + UnZip.modpack1 = datei; UnZip.main(); jButton4ActionPerformed(evt); } catch (java.lang.NullPointerException ex) { diff --git a/src/forgemodpackbuilder/UnZip.java b/src/forgemodpackbuilder/UnZip.java index 97858de..4a9a53a 100644 --- a/src/forgemodpackbuilder/UnZip.java +++ b/src/forgemodpackbuilder/UnZip.java @@ -18,7 +18,7 @@ public class UnZip { static String modpack1 = ""; public static void main() { String source = modpack; - String destination = System.getProperty("user.home") + "/.minecraft"; + String destination = modpack1; String password = "mypassword"; try {