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

- Puzzle DLC browser improvements / new categories

- Fix errors not being thrown sometimes
- Minor other stuff
This commit is contained in:
tobspr
2021-06-19 17:16:01 +02:00
parent 978c07ccc4
commit 416f89bbf4
6 changed files with 159 additions and 112 deletions

View File

@@ -89,8 +89,13 @@ export class StateManager {
const dialogParent = document.createElement("div");
dialogParent.classList.add("modalDialogParent");
document.body.appendChild(dialogParent);
try {
this.currentState.internalEnterCallback(payload);
} catch (ex) {
console.error(ex);
throw ex;
}
this.currentState.internalEnterCallback(payload);
this.app.sound.playThemeMusic(this.currentState.getThemeMusic());
this.currentState.onResized(this.app.screenWidth, this.app.screenHeight);