mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix spectate shield
This commit is contained in:
parent
753632e1d1
commit
a12f1d4e32
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ function module.on_world_update()
|
|||
end
|
||||
for peer_id, _ in pairs(ctx.players) do
|
||||
for shield_id, shield in pairs(shield_entities) do
|
||||
if ctx.players[shield_id] == nil then
|
||||
shield_entities[shield_id] = nil
|
||||
end
|
||||
if peer_id == shield[1] then
|
||||
local shield_ent = shield[2]
|
||||
local my_x, my_y = EntityGetTransform(ctx.players[peer_id].entity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue