Fixed another bug

This commit is contained in:
Andrew Lalis 2023-09-07 14:42:01 -04:00
parent 6c839e8cbc
commit 1f13436282
1 changed files with 2 additions and 2 deletions

View File

@ -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 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), 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. and the junction's computer will then send a success reply.
]] ]]--
local CONFIG_FILE = "switch_config.tbl" local CONFIG_FILE = "switch_config.tbl"
local CHANNEL = 0 local CHANNEL = 0
@ -89,7 +89,7 @@ local function configSetupWizard()
end end
table.insert(sw.controls, ctl) table.insert(sw.controls, ctl)
end end
table.insert(config.switches, sw) table.insert(cfg.switches, sw)
end end
local f = io.open(CONFIG_FILE, "w") local f = io.open(CONFIG_FILE, "w")
f:write(textutils.serialize(cfg)) f:write(textutils.serialize(cfg))