feat(tutle-utils): digAll return value

This commit is contained in:
Guillaume ARM 2024-05-26 00:05:37 +02:00
parent 83a819c038
commit c5dcfaf2b7

View File

@ -148,7 +148,13 @@ turtleUtils.dropSlot = function(slotIndex, dropFn)
end end
turtleUtils.digAll = function() 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 end
turtleUtils.countFreeSlots = function() turtleUtils.countFreeSlots = function()