Fix bug in itemscript.
This commit is contained in:
parent
d27320c135
commit
0f3e5d9ee2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue