Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit e2505e7

Browse files
Fixed profile commands help
1 parent 5bab5df commit e2505e7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/ml/northwestwind/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static Map<Integer, Map.Entry<Integer, String>> loadMods(String profile)
9898
String[] splitted1 = Arrays.stream(Arrays.copyOf(splitted, splitted.length - 1)).toArray(String[]::new);
9999
String id = Utils.getLast(Arrays.asList(splitted1));
100100
if (!Utils.isInteger(id)) continue;
101-
String name = String.join("_", Arrays.copyOf(splitted1, splitted.length - 1));
101+
String name = String.join("_", Arrays.copyOf(splitted1, splitted1.length - 1));
102102
map.put(Integer.parseInt(id), new Map.Entry<Integer, String>() {
103103
@Override
104104
public Integer getKey() {

src/ml/northwestwind/Profile.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ private static void export(String[] args) {
403403
try {
404404
manifest.delete();
405405
FileUtils.deleteDirectory(overridesFolder);
406+
FileUtils.deleteDirectory(modsCopy);
406407
} catch (Exception e) {
407408
System.out.println(Ansi.ansi().fg(Ansi.Color.YELLOW).a("Failed to clean up, but we can keep running."));
408409
e.printStackTrace();
@@ -496,8 +497,6 @@ public static void printHelp(String prefix) {
496497
System.out.println(prefix + "\t\targ <name>: Name of the profile.");
497498
System.out.println(prefix + "\texport: Export a profile into zip.");
498499
System.out.println(prefix + "\t\targ <name>: Name of the profile.");
499-
System.out.println(prefix + "\t\targ <version>: Version of the exported profile.");
500-
System.out.println(prefix + "\t\targ <launcherVer>: The version of the mod launcher.");
501500
System.out.println(prefix + "\t\targ [folders|files]: Folders or files to put in overrides.");
502501
System.out.println(prefix + "\tadd: Add a mod to the profile.");
503502
System.out.println(prefix + "\t\targ <profile>: Name of the profile to target.");

0 commit comments

Comments
 (0)