diff --git a/farms/spawner.lua b/farms/spawner.lua index af5865c..c5efc30 100644 --- a/farms/spawner.lua +++ b/farms/spawner.lua @@ -56,8 +56,8 @@ local sensor = device['plethora:sensor'] if not fs.exists(STARTUP_FILE) then Util.writeFile(STARTUP_FILE, - [[os.sleep(1) -shell.openForegroundTab('spawner.lua')]]) + string.format([[os.sleep(1) +shell.openForegroundTab('spawner.lua %s')]], table.concat(mobTypes, ' ')) print('Autorun program created: ' .. STARTUP_FILE) end @@ -152,6 +152,7 @@ while true do break end end + break end end) end diff --git a/milo/apis/massAdapter.lua b/milo/apis/massAdapter.lua index 7a42c57..aff1b9d 100644 --- a/milo/apis/massAdapter.lua +++ b/milo/apis/massAdapter.lua @@ -36,7 +36,6 @@ function Adapter:init(args) end function self.pushItems(target, key, amount, slot) -_debug('pushing items') local item = self.findItem(itemDB:splitKey(key)) if item and item.export then return item.export(target, amount, slot) @@ -45,8 +44,7 @@ _debug('pushing items') end function self.pullItems(target, key, amount, slot) -_debug('pulling items') - _debug({target, key, amount, slot }) + _G._debug({target, key, amount, slot }) return 0 end