diff --git a/turtle-utils.lua b/turtle-utils.lua index 90f74a2..a5b8e90 100644 --- a/turtle-utils.lua +++ b/turtle-utils.lua @@ -25,7 +25,17 @@ turtleUtils.trySuckUp = function() end turtleUtils.tryDrop = function() - while not turtle.drop() do + while true do + if turtle.getItemCount() == 0 then + return false + end + + local dropOk = turtle.drop(); + + if (dropOk) then + return true + end + os.sleep(IDLE_TIME) end end