Skip to content

Commit 199f838

Browse files
author
yHSJ
committed
chore: fix player length comparison
1 parent deee174 commit 199f838

File tree

1 file changed

+1
-1
lines changed
  • crates/rpc/src/model/cluster

1 file changed

+1
-1
lines changed

crates/rpc/src/model/cluster/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl NodeClient {
156156
return Ok(player_utxo.hash);
157157
}
158158

159-
if game_state.players.len() > 2 {
159+
if game_state.players.len() >= 2 {
160160
return Err(anyhow!("too many players"));
161161
}
162162
// Previous add player logic

0 commit comments

Comments
 (0)