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

Commit 9e199ff

Browse files
Better profile name creation
1 parent b791c23 commit 9e199ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ml/northwestwind/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
public class Constants {
44
public static final String CURSEFORGE_API = "https://addons-ecs.forgesvc.net/api/v2/addon/";
5-
public static final String VERSION = "1.0.8";
5+
public static final String VERSION = "1.0.9";
66
}

src/ml/northwestwind/Profile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private static void create() {
6666
}
6767
System.out.print(Ansi.ansi().fg(Ansi.Color.YELLOW).a("Mod launcher version: ").reset());
6868
String modVer = scanner.nextLine();
69-
File profile = new File(Config.profileDir.getPath() + File.separator + name);
69+
File profile = new File(Config.profileDir.getPath() + File.separator + name.toLowerCase().replaceAll("[^\\w]+", "-"));
7070
if (profile.exists()) {
7171
System.out.println(name + " already exists.");
7272
return;

0 commit comments

Comments
 (0)