Fix constraint optimization not working on servers

This commit is contained in:
Garrett Brown 2019-04-09 01:18:52 -04:00
parent f294fe2551
commit 20063e6519

View File

@ -117,7 +117,7 @@ if(SERVER)then
end
local function GetSortedConstraints( ply, constraints )
if GetConVarNumber("advdupe2_sort_constraints") ~= 0 then
if ply:GetInfo("advdupe2_sort_constraints") ~= 0 then
return GroupConstraintOrder( ply, constraints )
else
return CreationConstraintOrder( constraints )