From cea73d7ab8f161690b10c0d864213cf760e1b263 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 23 Jan 2025 22:16:21 +0900 Subject: [PATCH] . --- exp_legacy/module/modules/gui/vlayer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp_legacy/module/modules/gui/vlayer.lua b/exp_legacy/module/modules/gui/vlayer.lua index 62e504d8..15e6af02 100644 --- a/exp_legacy/module/modules/gui/vlayer.lua +++ b/exp_legacy/module/modules/gui/vlayer.lua @@ -86,7 +86,7 @@ Selection.on_selection(SelectionConvertArea, function(event) local target = vlayer_control_type_list[disp[vlayer_gui_control_type.name].selected_index] local entities - if event.surface and event.surface.platform and target == "energy" then + if config.power_on_space and event.surface and event.surface.platform and target == "energy" then entities = event.surface.find_entities_filtered{ area = area, name = "constant-combinator", force = player.force } else entities = event.surface.find_entities_filtered{ area = area, name = "steel-chest", force = player.force }