sling
This commit is contained in:
parent
f10ca59400
commit
26083791e2
4 changed files with 16 additions and 2 deletions
|
|
@ -25,6 +25,17 @@ local function cleanupEntities()
|
|||
end
|
||||
end
|
||||
|
||||
-- Cleanup other players weapons
|
||||
for playerId, weapons in pairs(otherPlayersWeapons) do
|
||||
for weaponName, _ in pairs(weapons) do
|
||||
if Sling.cachedAttachments[weaponName] then
|
||||
safeDelete(Sling.cachedAttachments[weaponName].obj)
|
||||
safeDelete(Sling.cachedAttachments[weaponName].placeholder)
|
||||
end
|
||||
end
|
||||
otherPlayersWeapons[playerId] = nil
|
||||
end
|
||||
|
||||
Sling.currentAttachedAmount = 0
|
||||
collectgarbage("collect")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue