This commit is contained in:
2025-01-23 22:16:21 +09:00
parent bf29c1ccd9
commit cea73d7ab8

View File

@@ -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 target = vlayer_control_type_list[disp[vlayer_gui_control_type.name].selected_index]
local entities 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 } entities = event.surface.find_entities_filtered{ area = area, name = "constant-combinator", force = player.force }
else else
entities = event.surface.find_entities_filtered{ area = area, name = "steel-chest", force = player.force } entities = event.surface.find_entities_filtered{ area = area, name = "steel-chest", force = player.force }