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,8 +1973,10 @@ function PLAYERTASKCONTROLLER:_SendMessageToClients(Text,Seconds)
|
|||||||
local seconds = Seconds or 10
|
local seconds = Seconds or 10
|
||||||
self.ClientSet:ForEachClient(
|
self.ClientSet:ForEachClient(
|
||||||
function (Client)
|
function (Client)
|
||||||
|
if Client ~= nil and Client:IsActive() then
|
||||||
local m = MESSAGE:New(Text,seconds,"Tasking"):ToClient(Client)
|
local m = MESSAGE:New(Text,seconds,"Tasking"):ToClient(Client)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
)
|
)
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user