mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 07:22:09 -05:00
Improve error message for Bo3 crash
This commit is contained in:
parent
603e3cd82f
commit
13c8c19064
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user