From 4421cbc0c5888fa1213bc544e09f53cd8d1e80e9 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 17 Dec 2023 20:47:17 -0500 Subject: [PATCH] fixed input/output side text being sometimes wrong on rtu configurator redstone editing --- rtu/configure.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtu/configure.lua b/rtu/configure.lua index 823d2f3..a77ab32 100644 --- a/rtu/configure.lua +++ b/rtu/configure.lua @@ -1417,7 +1417,7 @@ local function config_view(display) end tool_ctl.rs_cfg_selection.set_value(text) - tool_ctl.rs_cfg_side_l.set_value(util.trinary(rsio.get_io_dir(idx) == rsio.IO_DIR.IN, "Input Side", "Output Side")) + tool_ctl.rs_cfg_side_l.set_value(util.trinary(rsio.get_io_dir(def.port) == rsio.IO_DIR.IN, "Input Side", "Output Side")) side.set_value(side_to_idx(def.side)) bundled.set_value(def.color ~= nil) tool_ctl.rs_cfg_color.set_value(value)