From 1f13436282c10ff7b142b8c4be6158bca598d9d9 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Thu, 7 Sep 2023 14:42:01 -0400 Subject: [PATCH] Fixed another bug --- switcher.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/switcher.lua b/switcher.lua index b86b2ac..94a8261 100644 --- a/switcher.lua +++ b/switcher.lua @@ -4,7 +4,7 @@ junction. As a player with a portable computer approaches, that portable computer will be sending out a signal indicating their preferred switching configuration (the branch they're coming from, and the one they want to go to), and the junction's computer will then send a success reply. -]] +]]-- local CONFIG_FILE = "switch_config.tbl" local CHANNEL = 0 @@ -89,7 +89,7 @@ local function configSetupWizard() end table.insert(sw.controls, ctl) end - table.insert(config.switches, sw) + table.insert(cfg.switches, sw) end local f = io.open(CONFIG_FILE, "w") f:write(textutils.serialize(cfg))