fix some probably meaningless errors

This commit is contained in:
bgkillas 2024-09-08 16:43:57 -04:00
parent e7012de30b
commit dbf5f46e33

View file

@ -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)