summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/state.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/state.rs b/server/src/state.rs
index 11c45933..97261fab 100644
--- a/server/src/state.rs
+++ b/server/src/state.rs
@@ -130,7 +130,8 @@ impl State {
}
self.game
.packet_in(player, packet, &mut replies, &mut self.packet_out)?;
- if self.game.players.is_empty() && !self.game.lobby {
+
+ if self.game.count_chefs() <= 0 && !self.game.lobby {
self.tx
.send(PacketC::ServerMessage {
text: "Game was aborted automatically due to a lack of players".to_string(),