Fix typo in GetNailOwner
This commit is contained in:
parent
de057a7fc6
commit
f9c12c63b3
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ end
|
|||
|
||||
local function GetNailOwner(nail, filter)
|
||||
for _, ent in pairs(ents.GetAll()) do
|
||||
if ent and ent ~= filter and ent.Nails and ent:isValid() then
|
||||
if ent and ent ~= filter and ent.Nails and ent:IsValid() then
|
||||
for __, n in pairs(ent.Nails) do
|
||||
if n == nail then
|
||||
return ent
|
||||
|
|
Loading…
Reference in a new issue