mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
fix spectator helps indexing nil sometimes
This commit is contained in:
parent
61d14f2059
commit
1c967e5ce7
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ local shield_entities = {}
|
||||||
rpc.opts_everywhere()
|
rpc.opts_everywhere()
|
||||||
rpc.opts_reliable()
|
rpc.opts_reliable()
|
||||||
function rpc.add_shield(target)
|
function rpc.add_shield(target)
|
||||||
if GameHasFlagRun("ending_game_completed") then
|
if GameHasFlagRun("ending_game_completed") or target == nil or ctx.players[target] == nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local entity = ctx.players[target].entity
|
local entity = ctx.players[target].entity
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue