1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Update settings version and changelog

This commit is contained in:
tobspr
2020-09-13 09:22:17 +02:00
parent 3741934b39
commit 10507b735a
2 changed files with 8 additions and 7 deletions

View File

@@ -523,7 +523,7 @@ export class ApplicationSettings extends ReadWriteProxy {
}
getCurrentVersion() {
return 25;
return 26;
}
/** @param {{settings: SettingsStorage, version: number}} data */
@@ -630,11 +630,6 @@ export class ApplicationSettings extends ReadWriteProxy {
data.settings.refreshRate = "60";
}
if (data.version < 25) {
data.settings.pickMinerOnPatch = true;
data.version = 25;
}
if (data.version < 25) {
data.settings.musicVolume = 0.5;
data.settings.soundVolume = 0.5;
@@ -646,6 +641,11 @@ export class ApplicationSettings extends ReadWriteProxy {
data.version = 25;
}
if (data.version < 26) {
data.settings.pickMinerOnPatch = true;
data.version = 26;
}
return ExplainedResult.good();
}
}