Skip to content

Commit

Permalink
Improve error message for Bo3 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Dec 1, 2023
1 parent 603e3cd commit 13c8c19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/room-battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,7 @@ export class BestOfGame extends RoomGames.RoomGame {
player.sendRoom(prompt);
player.sendRoom(button);
// send it to the main room as well, in case they x out of the old one
if (!this.playerTable[userid]) throw new Error(`Player ${userid} in ${this.roomid} doesn't exist`);
this.playerTable[userid].sendRoom(prompt);
this.playerTable[userid].sendRoom(button);
}
Expand Down

0 comments on commit 13c8c19

Please sign in to comment.