Skip to content

Commit

Permalink
Replace SWEP.Owner with SWEP:GetOwner()
Browse files Browse the repository at this point in the history
  • Loading branch information
chelog authored Mar 14, 2024
1 parent 64e3408 commit 6154955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fpp/server/ownability.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ local function recalculateCanTouch(players, entities)
if not IsValid(v) then entities[k] = nil continue end
if v:IsEFlagSet(EFL_SERVER_ONLY) then entities[k] = nil continue end
if blockedEnts[v:GetClass()] then entities[k] = nil continue end
if v:IsWeapon() and IsValid(v.Owner) then entities[k] = nil continue end
if v:IsWeapon() and IsValid(v:GetOwner()) then entities[k] = nil continue end
end

for _, ply in pairs(players) do
Expand Down

0 comments on commit 6154955

Please sign in to comment.