Skip to content

Commit 86b57b8

Browse files
authored
Fix potential errors when running say from starfall (#2232)
1 parent 2aa27cc commit 86b57b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/starfall/libs_sv/players.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function player_methods:say(text, teamOnly)
291291
if instance.player ~= ply then SF.Throw("Player say can only be used on yourself!", 2) end
292292
if CurTime() < (ply.sf_say_cd or 0) then SF.Throw("Player say must wait 0.5s between calls!", 2) end
293293
ply.sf_say_cd = CurTime() + 0.5
294-
Ply_Say(ply, text, teamOnly)
294+
instance:runExternal(Ply_Say, ply, text, teamOnly)
295295
end
296296

297297
--- Sets the armor of the player.

0 commit comments

Comments
 (0)