summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-06-28 00:08:05 +0100
committerubq323 <ubq323@ubq323.website>2022-06-28 00:08:05 +0100
commitc5b562d81ce17d017bf46d5ec7f9c936ca688370 (patch)
treee57cd366818e503e4f9756b9040accf248ead5c6
parent989a265c039dbd3aa73a3118657fa46942211e85 (diff)
hole
-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