diff --git a/src/itemscript.lua b/src/itemscript.lua index 0f12296..6e5e669 100644 --- a/src/itemscript.lua +++ b/src/itemscript.lua @@ -253,7 +253,7 @@ function itemscript.findSlot(filterExpr) local filter = itemscript.filterize(filterExpr) for i = 1, 16 do local item = turtle.getItemDetail(i) - if filter(i) then return i end + if filter(item) then return i end end return nil end