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

Refactor smart underground belt logic

This commit is contained in:
tobspr
2020-06-22 12:48:35 +02:00
parent d452234c72
commit f204189fdb
3 changed files with 38 additions and 12 deletions

View File

@@ -468,7 +468,7 @@ export class ApplicationSettings extends ReadWriteProxy {
}
getCurrentVersion() {
return 15;
return 16;
}
/** @param {{settings: SettingsStorage, version: number}} data */
@@ -530,6 +530,12 @@ export class ApplicationSettings extends ReadWriteProxy {
data.version = 15;
}
if (data.version < 16) {
// RE-ENABLE this setting, it already existed
data.settings.enableTunnelSmartplace = true;
data.version = 16;
}
return ExplainedResult.good();
}
}