Skip to content

Commit 00e9a9c

Browse files
committed
Use GUID v7 for new profiles
1 parent 8119855 commit 00e9a9c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

HMCL/src/main/java/org/jackhuang/hmcl/game/ModpackHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public static Task<?> getInstallManuallyCreatedModpackTask(Profile profile, Path
192192

193193
return new ManuallyCreatedModpackInstallTask(profile, zipFile, charset, name)
194194
.thenAcceptAsync(Schedulers.javafx(), location -> {
195-
Profile newProfile = new Profile(GUID.v4(), name, PortablePath.fromPath(location));
195+
Profile newProfile = new Profile(GUID.v7(), name, PortablePath.fromPath(location));
196196
Profiles.getProfiles().add(newProfile);
197197
Profiles.setSelectedProfile(newProfile);
198198
});

HMCL/src/main/java/org/jackhuang/hmcl/ui/profile/ProfilePage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private void onSave() {
189189
if (StringUtils.isBlank(getLocation())) {
190190
gameDir.fire();
191191
}
192-
Profile newProfile = new Profile(GUID.v4(), txtProfileName.getText(), PortablePath.of(getLocation()));
192+
Profile newProfile = new Profile(GUID.v7(), txtProfileName.getText(), PortablePath.of(getLocation()));
193193
Profiles.getProfiles().add(newProfile);
194194
}
195195

0 commit comments

Comments
 (0)