summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-01-03 02:42:40 +0000
committerubq323 <ubq323@ubq323.website>2023-01-03 02:42:40 +0000
commit782c4216610e3c1d5df34a442fa53bc32a18c674 (patch)
treeca7e091f65d18eb2fb4e1c3a8bfbf890c4a38501
parentbade3d58e17386977db92d3920f20b3ebbeacf0b (diff)
fish
-rw-r--r--fish.lua6
1 files 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