This commit is contained in:
2025-02-24 17:06:55 +09:00
parent 5800d4a590
commit 261041edd3

View File

@@ -541,6 +541,12 @@ function vlayer.get_circuits()
} }
end end
local vlayer_circuits_string = ""
for key, value in pairs(vlayer.get_circuits()) do
vlayer_circuits_string = vlayer_circuits_string .. value .. " = " .. key .. "\n"
end
--- Create a new circuit interface --- Create a new circuit interface
-- @tparam LuaSurface surface The surface to place the interface onto -- @tparam LuaSurface surface The surface to place the interface onto
-- @tparam MapPosition position The position on the surface to place the interface at -- @tparam MapPosition position The position on the surface to place the interface at
@@ -610,6 +616,8 @@ local function handle_circuit_interfaces()
circuit_oc.clear_slot(clear_index) circuit_oc.clear_slot(clear_index)
end end
circuit_oc.combinator_description = vlayer_circuits_string
end end
end end
end end