fix: avoid erroring out when called from interpreter
This commit is contained in:
parent
65c3b4fe20
commit
f688bdadf7
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ function run (requester, ticker)
|
|||
return run(requester, ticker)
|
||||
end
|
||||
|
||||
if arg[1] == "run" then
|
||||
if arg ~= nil and arg[1] == "run" then
|
||||
local requester = peripheral.wrap(MAIN_REQUESTER)
|
||||
local ticker = peripheral.wrap(SUBNET_TICKER)
|
||||
run(requester, ticker)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue