This commit is contained in:
phidias authored and GitHub committed 2026-11-12 00:26:57 +09:00
1 parent 7a6e0a1d0a
commit 0d9d8cbb45
1 file changed
+3 -1
+3 -1
View File
@@ -445,7 +445,9 @@ end
function Elements.controls.refresh_interfaces(controls)
local elements = Elements.controls.data[controls]
local interface_type = Elements.type_dropdown.get_selected(elements.type_dropdown)
local surface = game.surfaces[elements.surface_dropdown.items[elements.surface_dropdown.selected_index]]
local element = elements.surface_dropdown
if not element then return end
local surface = game.surfaces[element.items[element.selected_index]]
Elements.interface_dropdown.refresh(elements.interface_dropdown, Vlayer.get_interfaces(surface.index)[interface_type])
end