From f25b521ed478e7e9e254b6379bfd5a01d3d935e8 Mon Sep 17 00:00:00 2001 From: osmarks Date: Mon, 30 Apr 2018 20:16:09 +0100 Subject: [PATCH] Filter out qty keys --- crafter.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crafter.lua b/crafter.lua index b97c77d..b096c11 100644 --- a/crafter.lua +++ b/crafter.lua @@ -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 }