Skip to content

Commit bc824f1

Browse files
committed
Fix Lua/netmessage error when spectators chat
1 parent f005019 commit bc824f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gamemodes/amongus/gamemode/sv_player.moon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,8 @@ hook.Add "PlayerSay", "NMW AU DeadChat", (ply) ->
479479
if not GAMEMODE\IsMeetingInProgress!
480480
playerTable = IsValid(ply) and ply\GetAUPlayerTable!
481481

482-
-- ...unless he's dead/a spectator.
483-
if (playerTable and not ply\IsDead!) or not playerTable
482+
-- ... but only if they're a living player
483+
if (playerTable and not ply\IsDead!)
484484
GAMEMODE\Net_SendGameChatError playerTable
485485
return ""
486486

0 commit comments

Comments
 (0)