diff options
author | ubq323 <ubq323@ubq323.website> | 2023-01-03 02:42:40 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-01-03 02:42:40 +0000 |
commit | 782c4216610e3c1d5df34a442fa53bc32a18c674 (patch) | |
tree | ca7e091f65d18eb2fb4e1c3a8bfbf890c4a38501 | |
parent | bade3d58e17386977db92d3920f20b3ebbeacf0b (diff) |
fish
-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 |