Skip to content

Commit

Permalink
Fix #2: set gameDir to relative path instead of absolute
Browse files Browse the repository at this point in the history
This applies to Android currently because iOS has a different instance management system (todo: copy to instance after installing?)
  • Loading branch information
khanhduytran0 authored Apr 16, 2023
1 parent 0c3a847 commit 2e9023f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ml/northwestwind/Modpack.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ private static void install(String[] args) {
copyFromOverride(packFolder.getAbsolutePath(), (String) manifestJson.get("overrides"));
downloadMods(packFolder.getAbsolutePath());
String thumb = downloadThumb(json);
genProfile(name, packFolder.getAbsolutePath(), thumb, getModVersion(manifestJson));
genProfile(name, "." + File.separator + Config.modpackDir.getName() + File.separator + packFolder.getName(), thumb, getModVersion(manifestJson));
//genProfile(name, packFolder.getAbsolutePath(), thumb, getModVersion(manifestJson));
System.out.println(Ansi.ansi().fg(Ansi.Color.GREEN).a("Finished download of " + name).reset());
} catch (Exception e) {
if (!Config.silentExceptions) e.printStackTrace();
Expand Down

0 comments on commit 2e9023f

Please sign in to comment.