mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix some probably meaningless errors
This commit is contained in:
parent
e7012de30b
commit
dbf5f46e33
1 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,9 @@ end
|
|||
|
||||
local function do_switch_effect(short)
|
||||
-- Make an effect
|
||||
if not EntityGetIsAlive(ctx.my_player.entity) then
|
||||
return
|
||||
end
|
||||
local x, y = EntityGetTransform(ctx.my_player.entity)
|
||||
rpc.switch_effect(x, y)
|
||||
if short then
|
||||
|
@ -255,7 +258,9 @@ ctx.cap.health = {
|
|||
inventory_helper.set_item_data(item_data, ctx.my_player)
|
||||
remove_inventory_tags()
|
||||
local controls = EntityGetFirstComponentIncludingDisabled(ctx.my_player.entity, "ControlsComponent")
|
||||
if controls ~= nil then
|
||||
ComponentSetValue2(controls, "enabled", true)
|
||||
end
|
||||
if GameHasFlagRun("ew_kill_player") then
|
||||
GameRemoveFlagRun("ew_kill_player")
|
||||
wait(100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue