diff options
-rw-r--r-- | fish.lua | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |