mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
check PLAYER.CPPIGetOwner instead of CPPI global (#414)
Fixes partial implementations of CPPI and is more consistent with the rest of the code base
This commit is contained in:
parent
c78decb8be
commit
df12047d51
@ -137,7 +137,7 @@ if(SERVER)then
|
||||
|
||||
--Find all the entities in a box, given the adjacent corners and the player
|
||||
local function FindInBox(min, max, ply)
|
||||
local PPCheck = (tobool(ply:GetInfo("advdupe2_copy_only_mine")) and CPPI~=nil) and PlayerCanDupeCPPI or PlayerCanDupeTool
|
||||
local PPCheck = (tobool(ply:GetInfo("advdupe2_copy_only_mine")) and ply.CPPIGetOwner~=nil) and PlayerCanDupeCPPI or PlayerCanDupeTool
|
||||
local Entities = ents.GetAll() --Don't use FindInBox. It has a 512 entity limit.
|
||||
local EntTable = {}
|
||||
local pos, ent
|
||||
|
Loading…
Reference in New Issue
Block a user