mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2025-09-03 18:48:38 +02:00
fix: make sure player is active before drawing a card
This commit is contained in:
@ -218,7 +218,7 @@ func onPlayerJoin(client *socketio.Socket, room *types.Room, player *types.Playe
|
||||
// TODO: Handle empty card deck
|
||||
return
|
||||
}
|
||||
game.OnPlayerStateUpdate(room, player, false)
|
||||
game.UpdateAllPlayers(room)
|
||||
})
|
||||
|
||||
client.On("PlayCard", func(datas ...any) {
|
||||
|
Reference in New Issue
Block a user