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 if not fs.exists(STARTUP_FILE) then
Util.writeFile(STARTUP_FILE, Util.writeFile(STARTUP_FILE,
[[os.sleep(1) string.format([[os.sleep(1)
shell.openForegroundTab('spawner.lua')]]) shell.openForegroundTab('spawner.lua %s')]], table.concat(mobTypes, ' '))
print('Autorun program created: ' .. STARTUP_FILE) print('Autorun program created: ' .. STARTUP_FILE)
end end
@@ -152,6 +152,7 @@ while true do
break break
end end
end end
break
end end
end) end)
end end

View File

@@ -36,7 +36,6 @@ function Adapter:init(args)
end end
function self.pushItems(target, key, amount, slot) function self.pushItems(target, key, amount, slot)
_debug('pushing items')
local item = self.findItem(itemDB:splitKey(key)) local item = self.findItem(itemDB:splitKey(key))
if item and item.export then if item and item.export then
return item.export(target, amount, slot) return item.export(target, amount, slot)
@@ -45,8 +44,7 @@ _debug('pushing items')
end end
function self.pullItems(target, key, amount, slot) function self.pullItems(target, key, amount, slot)
_debug('pulling items') _G._debug({target, key, amount, slot })
_debug({target, key, amount, slot })
return 0 return 0
end end