diff --git a/controller/InGameState.ts b/controller/InGameState.ts index e097faf..704e32c 100644 --- a/controller/InGameState.ts +++ b/controller/InGameState.ts @@ -679,11 +679,12 @@ export class InGameState { private checkLevelUpdate(currentPlayerState: Player, id: number) { if (this.gameState.player[id] === undefined || currentPlayerState.level <= this.gameState.player[id]?.level) return - if (!this.config.level.includes(currentPlayerState.level.toString())) return this.gameState.player[id].level = currentPlayerState.level this.updateState() + if (!this.config.level.includes(currentPlayerState.level.toString())) return + this.ctx.LPTE.emit({ meta: { type: 'level-update',