mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
PLAYERTASK - nil check for client messaging
This commit is contained in:
parent
03cd390baf
commit
fb31c25ab7
@ -1973,7 +1973,9 @@ function PLAYERTASKCONTROLLER:_SendMessageToClients(Text,Seconds)
|
||||
local seconds = Seconds or 10
|
||||
self.ClientSet:ForEachClient(
|
||||
function (Client)
|
||||
local m = MESSAGE:New(Text,seconds,"Tasking"):ToClient(Client)
|
||||
if Client ~= nil and Client:IsActive() then
|
||||
local m = MESSAGE:New(Text,seconds,"Tasking"):ToClient(Client)
|
||||
end
|
||||
end
|
||||
)
|
||||
return self
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user