From 261041edd3b0829b8825efa2290d2ada7ff84e93 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 24 Feb 2025 17:06:55 +0900 Subject: [PATCH] . --- exp_legacy/module/modules/control/vlayer.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exp_legacy/module/modules/control/vlayer.lua b/exp_legacy/module/modules/control/vlayer.lua index 800b824f..a2367e1d 100644 --- a/exp_legacy/module/modules/control/vlayer.lua +++ b/exp_legacy/module/modules/control/vlayer.lua @@ -541,6 +541,12 @@ function vlayer.get_circuits() } 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 -- @tparam LuaSurface surface The surface to place the interface onto -- @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) end + + circuit_oc.combinator_description = vlayer_circuits_string end end end