Fix bug in itemscript.

This commit is contained in:
Andrew Lalis 2023-05-07 21:24:41 +02:00
parent d27320c135
commit 0f3e5d9ee2
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ function itemscript.findSlot(filterExpr)
local filter = itemscript.filterize(filterExpr) local filter = itemscript.filterize(filterExpr)
for i = 1, 16 do for i = 1, 16 do
local item = turtle.getItemDetail(i) local item = turtle.getItemDetail(i)
if filter(i) then return i end if filter(item) then return i end
end end
return nil return nil
end end