From 0f3e5d9ee28c7997ebcab3ef1d95c8ec7bc01d5d Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sun, 7 May 2023 21:24:41 +0200 Subject: [PATCH] Fix bug in itemscript. --- src/itemscript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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