summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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