From 577f6670d4d1c3d5f3f47a8f8b6368357abc7122 Mon Sep 17 00:00:00 2001 From: Jacob Grahn <jacob@grahn.io> Date: Sun, 22 Sep 2024 19:09:50 -0400 Subject: [PATCH] empty seems problematic --- multiplayer_server/rooms/Game.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiplayer_server/rooms/Game.php b/multiplayer_server/rooms/Game.php index f86642084..ecc9854b5 100644 --- a/multiplayer_server/rooms/Game.php +++ b/multiplayer_server/rooms/Game.php @@ -385,7 +385,7 @@ private function beginRace() } // remove other invalid hats from valid hats array - if (!emtpy($bad_hats)) { + if ($bad_hats) { $this->valid_hats = array_values(array_diff($this->valid_hats, explode(',', $bad_hats))); }