spawner tweaks

This commit is contained in:
kepler155c@gmail.com
2019-01-09 06:23:06 -05:00
parent 4311c982cd
commit df2f2dcb59
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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