Skip to content

Commit

Permalink
chore: fix player length comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 13, 2024
1 parent deee174 commit 199f838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rpc/src/model/cluster/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl NodeClient {
return Ok(player_utxo.hash);
}

if game_state.players.len() > 2 {
if game_state.players.len() >= 2 {
return Err(anyhow!("too many players"));
}
// Previous add player logic
Expand Down

0 comments on commit 199f838

Please sign in to comment.