From 782c4216610e3c1d5df34a442fa53bc32a18c674 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 3 Jan 2023 02:42:40 +0000 Subject: fish --- fish.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fish.lua b/fish.lua index 6240894..60b490c 100644 --- a/fish.lua +++ b/fish.lua @@ -3,7 +3,6 @@ os.sleep(3) local p=peripheral.wrap"back" while true do p.use() -os.sleep(5) while true do local es=p.sense() local ent=nil @@ -13,12 +12,11 @@ while true do break end end - if not ent then error("notfound") end + if not ent then error("not found") end --print(ent.y) - if ent.y<=-3.0 then p.use() break end + if ent.y<=-2.0 then p.use() break end os.sleep() end -os.sleep(1) end -- cgit v1.2.3