mirror of
https://github.com/CFC-Servers/cfc_ulx_commands.git
synced 2025-03-04 03:13:28 -05:00
Add IsValid check to caller in checkConstraints command (#140)
* Add IsValid check to caller * Update cfc_constraint_checker.lua * Remove trailing whitespace --------- Co-authored-by: Redox <mail@redox.to>
This commit is contained in:
parent
bbfd91da29
commit
e677dd0822
@ -159,6 +159,10 @@ function cmd.checkConstraints( caller, targetPlys, showPlysWithNoConstraints )
|
||||
|
||||
-- Create args for MsgC using constraint count list and send to client
|
||||
-- TODO move visualization code clientside
|
||||
if not IsValid( caller ) then
|
||||
MsgC( unpack( constraintMessageArgs ) )
|
||||
return
|
||||
end
|
||||
net.Start( "CFC_ULX_ConstraintResults" )
|
||||
net.WriteTable( getMsgCArgs( constraintCountsList ) )
|
||||
net.Send( caller )
|
||||
|
Loading…
Reference in New Issue
Block a user