mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
add (hack-y) check if player actually left
This commit is contained in:
parent
c8283f046c
commit
0ca0956d18
@ -329,14 +329,14 @@ function emut.RemoveMutationsForPlayer(ply)
|
||||
end
|
||||
|
||||
hook.Add("EntityRemoved", "pac_entity_mutators_left", function(ent)
|
||||
timer.Simple(0, function()
|
||||
if not IsValid(ent) then return end
|
||||
if ent:IsPlayer() then
|
||||
emut.RemoveMutationsForPlayer(ent)
|
||||
if Player(ent:UserID()) == NULL then
|
||||
emut.RemoveMutationsForPlayer(ent)
|
||||
end
|
||||
else
|
||||
emut.RemoveMutatorsOwnedByEntity(ent)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
if CLIENT then
|
||||
|
Loading…
Reference in New Issue
Block a user