summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hole.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/hole.lua b/hole.lua
index 53925e7..7a8efa3 100644
--- a/hole.lua
+++ b/hole.lua
@@ -37,4 +37,10 @@ while true do
laser.fire(yaw,pitch,4)
end
end
+ if #targets == 0 then
+ for i = 1,5 do
+ if turtle.detectDown() then break end
+ assert(turtle.down())
+ end
+ end
end