spawner tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user