diff --git a/gamemodes/zombiesurvival/gamemode/obj_entity_extend_sv.lua b/gamemodes/zombiesurvival/gamemode/obj_entity_extend_sv.lua index f2b3c98..054af62 100644 --- a/gamemodes/zombiesurvival/gamemode/obj_entity_extend_sv.lua +++ b/gamemodes/zombiesurvival/gamemode/obj_entity_extend_sv.lua @@ -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