Filter out qty keys

This commit is contained in:
osmarks 2018-04-30 20:16:09 +01:00
parent 5e15c6d011
commit f25b521ed4

View File

@ -48,8 +48,10 @@ end
local function craftOne(pat)
for slot, itemName in pairs(pat) do
local ispl = splitItemString(itemName)
util.query { cmd = "extract", meta = ispl[2], name = ispl[1], destInv = conf.name, destSlot = slot }
if slot ~= "qty" then
local ispl = splitItemString(itemName)
util.query { cmd = "extract", meta = ispl[2], name = ispl[1], destInv = conf.name, destSlot = slot }
end
end
turtle.craft()
util.query { cmd = "insert", fromInv = conf.name, fromSlot = 16 }