#159 fixed RTU facility level redstone linking

This commit is contained in:
Mikayla Fischler 2023-02-19 22:41:32 -05:00
parent c9526ba601
commit c4f6c1b289
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
"bootloader": "0.2",
"comms": "1.3.3",
"reactor-plc": "beta-v0.10.11",
"rtu": "beta-v0.11.0",
"rtu": "beta-v0.11.1",
"supervisor": "beta-v0.11.13",
"coordinator": "beta-v0.9.16",
"pocket": "alpha-v0.0.0"
@ -181,7 +181,7 @@
"graphics": 99360,
"lockbox": 100797,
"reactor-plc": 75956,
"rtu": 81511,
"rtu": 81676,
"supervisor": 261745,
"coordinator": 180622,
"pocket": 335

View File

@ -25,7 +25,7 @@ local sna_rtu = require("rtu.dev.sna_rtu")
local sps_rtu = require("rtu.dev.sps_rtu")
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
local RTU_VERSION = "beta-v0.11.0"
local RTU_VERSION = "beta-v0.11.1"
local rtu_t = types.rtu_t
@ -131,8 +131,8 @@ local function main()
local io_reactor = rtu_redstone[entry_idx].for_reactor ---@type integer
-- CHECK: reactor ID must be >= to 1
if (not util.is_int(io_reactor)) or (io_reactor <= 0) then
println(util.c("configure> redstone entry #", entry_idx, " : ", io_reactor, " isn't an integer >= 1"))
if (not util.is_int(io_reactor)) or (io_reactor < 0) then
println(util.c("configure> redstone entry #", entry_idx, " : ", io_reactor, " isn't an integer >= 0"))
return false
end