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

Unlock all levels when having a legacy savegame

This commit is contained in:
tobspr
2020-10-07 15:02:27 +02:00
parent fa27d1681f
commit 7dccc1a844
5 changed files with 533 additions and 416 deletions

View File

@@ -145,6 +145,11 @@ export class PreloadState extends GameState {
this.app.backgroundResourceLoader.startLoading();
})
.then(() => this.setStatus("Initializing restrictions"))
.then(() => {
return this.app.restrictionMgr.initialize();
})
.then(() => this.setStatus("Initializing savegame"))
.then(() => {
return this.app.savegameMgr.initialize().catch(err => {