diff --git a/exp_scenario/module/commands/home.lua b/exp_scenario/module/commands/home.lua index fb201fa0..256f41b9 100644 --- a/exp_scenario/module/commands/home.lua +++ b/exp_scenario/module/commands/home.lua @@ -54,7 +54,7 @@ commands.home = Commands.new("home", { "exp-commands_home.description-home" }) --- Teleports you to your previous location on the current surface --- @class ExpCommand_Home.commands._return: ExpCommand -commands._return = Commands.new("return", { "exp-commands_home.description-return" }) +commands.home_return = Commands.new("return", { "exp-commands_home.description-return" }) :add_flags{ "character_only" } :register(function(player) local surface = player.surface @@ -123,4 +123,4 @@ commands.get_home = Commands.new("get-home", { "exp-commands_home.description-ge return { commands = commands, -} \ No newline at end of file +} diff --git a/exp_scenario/module/gui/quick_actions.lua b/exp_scenario/module/gui/quick_actions.lua index 056a213a..0eacba2c 100644 --- a/exp_scenario/module/gui/quick_actions.lua +++ b/exp_scenario/module/gui/quick_actions.lua @@ -67,7 +67,7 @@ new_quick_action(addon_surface.commands.clear_ground_items) new_quick_action(addon_surface.commands.clear_blueprints_surface) new_quick_action(addon_surface.commands.clear_blueprints) new_quick_action(addon_home.commands.home) -new_quick_action(addon_home.commands._return) +new_quick_action(addon_home.commands.home_return) new_quick_action(addon_home.commands.set_home) new_quick_action(addon_home.commands.get_home) new_quick_action(addon_vlayer.commands.vlayer)