mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Skip sending player entity if player is currently a World State Entity
This commit is contained in:
parent
7854557e7e
commit
67659b000c
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@ local function entity_changed()
|
|||
if damage_model ~= nil then
|
||||
ComponentSetValue2(damage_model, "wait_for_kill_flag_on_death", true)
|
||||
end
|
||||
|
||||
if ctx.my_player.entity == GameGetWorldStateEntity() then
|
||||
print("Player entity is equal to WSE, skipping...")
|
||||
return
|
||||
end
|
||||
|
||||
rpc.change_entity({data = util.serialize_entity(ctx.my_player.entity)})
|
||||
else
|
||||
rpc.change_entity(nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue