mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Minor fixes and add save button
This commit is contained in:
@@ -165,7 +165,7 @@ export class InGameState extends GameState {
|
||||
return;
|
||||
}
|
||||
this.stageLeavingGame();
|
||||
this.doSave(false, true).then(() => {
|
||||
this.doSave().then(() => {
|
||||
this.stageDestroyed();
|
||||
this.moveToState(stateId, payload);
|
||||
});
|
||||
@@ -424,6 +424,7 @@ export class InGameState extends GameState {
|
||||
|
||||
// First update the game data
|
||||
logger.log("Starting to save game ...");
|
||||
this.core.root.signals.gameSaved.dispatch();
|
||||
this.savegame.updateData(this.core.root);
|
||||
return this.savegame.writeSavegameAndMetadata().catch(err => {
|
||||
logger.warn("Failed to save:", err);
|
||||
|
||||
Reference in New Issue
Block a user