You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,28 @@ You will find modpack/mod name with some numbers after it. That is totally inten
57
57
58
58
Installing a modpack will also generate a profile. However, the profile doesn't use the correct mod loader. Please install the mod loader yourself as instructed.
59
59
60
+
## Compiling
61
+
To compile the program yourself, some libraries are needed:
System.out.println(Ansi.ansi().fg(Ansi.Color.MAGENTA).a("Looking into versions directory: ").a(versionsDir.getAbsolutePath()).reset());
205
+
String[] versionNames = versionsDir.list();
206
+
if (versionNames != null) {
207
+
Optional<String> found = Arrays.stream(versionNames).filter(name -> name.contains(loader) && name.contains(modVer) && name.contains(version)).findFirst();
208
+
if (found.isPresent()) returnfound.get();
209
+
}
210
+
}
205
211
System.out.println(Ansi.ansi().fg(Ansi.Color.YELLOW).a("We couldn't find the mod launcher version required for your modpack!"));
206
212
System.out.println(Ansi.ansi().a("Please download the required mod launcher version from the link below. Enter y after you have that installed, or enter n to skip it for now [y/n]"));
207
213
if (loader.equalsIgnoreCase("forge")) System.out.println(Ansi.ansi().a("https://files.minecraftforge.net/net/minecraftforge/forge/").reset());
found = versions.stream().filter(name -> name.contains(loader) && name.contains(modVer) && name.contains(version)).findFirst();
213
-
if (found.isPresent()) returnfound.get();
217
+
if (versionsDir.exists()) {
218
+
String[] versionNames = versionsDir.list();
219
+
if (versionNames != null) {
220
+
Optional<String> found = Arrays.stream(versionNames).filter(name -> name.contains(loader) && name.contains(modVer) && name.contains(version)).findFirst();
221
+
if (found.isPresent()) returnfound.get();
222
+
}
223
+
}
214
224
System.out.println(Ansi.ansi().fg(Ansi.Color.YELLOW).a("We still couldn't find the mod launcher version required! The installation will continue anyway. You may have to change the profile settings after this."));
215
225
}
216
226
if (loader.equalsIgnoreCase("forge")) id = version + "-forge-" + modVer;
0 commit comments