feat(tutle-utils): digAll return value
This commit is contained in:
parent
83a819c038
commit
c5dcfaf2b7
@ -148,7 +148,13 @@ turtleUtils.dropSlot = function(slotIndex, dropFn)
|
||||
end
|
||||
|
||||
turtleUtils.digAll = function()
|
||||
while turtle.dig() do end
|
||||
while true do
|
||||
local ok, err = turtle.dig()
|
||||
|
||||
if not ok then
|
||||
return ok, err
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
turtleUtils.countFreeSlots = function()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user