Skip to content

Commit ce58bdd

Browse files
authored
Update turtleGenericInventoryProxy.lua
1 parent 58157e6 commit ce58bdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/turtleGenericInventoryProxy.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ local function psudoGenericPeripheralForSelfTurtle(modem)
2222
return list
2323
end,
2424
getItemDetail = function(slot)
25-
expect.range(1, slot, 1, 16)
25+
expect.range(1, slot, 1, TURTLE_INV_SIZE)
2626
return turtle.getItemDetail(slot, true)
2727
end,
2828
getItemLimit = function(slot)
29-
expect.range(1, slot, 1, 16)
29+
expect.range(1, slot, 1, TURTLE_INV_SIZE)
3030
local item = turtle.getItemDetail(slot, true)
3131
return item and item.maxCount
3232
end,

0 commit comments

Comments
 (0)