tweaks and shatter

This commit is contained in:
kepler155c
2018-11-03 04:47:52 -04:00
parent 047c2cdddb
commit aa66b1c663
6 changed files with 573 additions and 18 deletions

View File

@@ -28,8 +28,9 @@ local monitor
local defaultEnv = Util.shallowCopy(_ENV)
defaultEnv.multishell = multishell
if args[2] then
if args[3] then
monitor = _G.device[args[3]]
elseif args[2] then
monitor = peripheral.wrap(args[2]) or syntax()
else
monitor = peripheral.find('monitor') or syntax()