Skip to content

Commit

Permalink
Fix clientside starfall instances not cleaning up after a fullupdate (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yingKatsu authored Jul 3, 2024
1 parent 13368ad commit 184648c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/starfall/sflib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ hook.Add("EntityRemoved","SF_CallOnRemove",function(ent)
for k, v in pairs(hooks) do
if v[2] then v[2](ent) end
end
removedHooks[ent] = nil
end
end)
elseif SERVER then
removedHooks[ent] = nil
end
removedHooks[ent] = nil
end
end)
function SF.CallOnRemove(ent, key, func, deferedfunc)
Expand Down

0 comments on commit 184648c

Please sign in to comment.