fix: avoid erroring out when called from interpreter

This commit is contained in:
Emerson Rosen-Jones 2025-12-19 23:48:22 -05:00
parent 65c3b4fe20
commit f688bdadf7

View file

@ -116,7 +116,7 @@ function run (requester, ticker)
return run(requester, ticker) return run(requester, ticker)
end end
if arg[1] == "run" then if arg ~= nil and arg[1] == "run" then
local requester = peripheral.wrap(MAIN_REQUESTER) local requester = peripheral.wrap(MAIN_REQUESTER)
local ticker = peripheral.wrap(SUBNET_TICKER) local ticker = peripheral.wrap(SUBNET_TICKER)
run(requester, ticker) run(requester, ticker)