fix: sometimes cannot edit modpack versiojn settings

This commit is contained in:
huanghongxun committed 2020-05-31 23:00:44 +08:00
1 parent a2ef477ae0
commit 476c41b29b
1 file changed
+5
@@ -81,6 +81,11 @@ public class HMCLGameRepository extends DefaultGameRepository {
localVersionSettings.clear();
super.refreshVersionsImpl();
versions.keySet().forEach(this::loadLocalVersionSetting);
versions.keySet().forEach(version -> {
if (isModpack(version)) {
specializeVersionSetting(version);
}
});
try {
File file = new File(getBaseDirectory(), "launcher_profiles.json");