mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
fix inventory sticking
This commit is contained in:
parent
78791ab3ab
commit
64e2823567
1 changed files with 8 additions and 0 deletions
|
@ -193,6 +193,14 @@ ctx.cap.health = {
|
|||
wait(1)
|
||||
do_switch_effect()
|
||||
GameSetCameraFree(false)
|
||||
for id, player_data in ctx.players do
|
||||
if id ~= ctx.my_id then
|
||||
local inventory_gui = EntityGetFirstComponent(player_data.entity, "InventoryGuiComponent")
|
||||
if inventory_gui ~= nil then
|
||||
EntityRemoveComponent(player_data.entity, inventory_gui)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
else
|
||||
end_poly_effect(ctx.my_player.entity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue