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