Skip to content

Commit b0b1503

Browse files
committed
Fix an issue causing the custom profile in the launcher to not be updated when the game version has been updated
1 parent de34cf5 commit b0b1503

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
org.gradle.jvmargs=-Xmx1G
33

44
# Version and packaging info
5-
version=1.1.0
5+
version=1.1.1
66
maven_group=net.hypercubemc
77
archives_base_name=Iris-Installer
88

99
# Main class to start with when the jar is run
10-
main_class=net.hypercubemc.iris_installer.Installer
10+
main_class=net.hypercubemc.iris_installer.Installer

src/main/java/net/hypercubemc/iris_installer/VanillaLauncherIntegration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private static void installProfile(Path mcDir, Path instanceDir, String profileN
6464
JSONObject profile = profiles.has(foundProfileName) ? profiles.getJSONObject(foundProfileName) : createProfile(profileName, instanceDir, versionId, icon);
6565
profile.put("name", profileName);
6666
profile.put("lastUsed", Utils.ISO_8601.format(new Date())); // Update timestamp to bring to top of profile list
67+
profile.put("lastVersionId", versionId);
6768

6869
profiles.put(foundProfileName, profile);
6970
jsonObject.put("profiles", profiles);

0 commit comments

Comments
 (0)