fix spectate shield

This commit is contained in:
bgkillas 2024-10-05 14:42:15 -04:00
parent a12f1d4e32
commit e3a22b94fa

View file

@ -97,6 +97,7 @@ function module.on_world_update()
for shield_id, shield in pairs(shield_entities) do
if ctx.players[shield_id] == nil then
shield_entities[shield_id] = nil
goto continue
end
if peer_id == shield[1] then
local shield_ent = shield[2]