From 48fbfa4f9726feedb789e42bfb1ac0f40e709859 Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Tue, 5 Jan 2021 16:22:41 +0300 Subject: [PATCH] Update craftCrystal.lua --- craftCrystal.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/craftCrystal.lua b/craftCrystal.lua index c6385c1..a4c355b 100644 --- a/craftCrystal.lua +++ b/craftCrystal.lua @@ -5,13 +5,16 @@ local rs = component.redstone local flag = true; while true do if rs.getInput(sides.top) > 0 then - flag = true + if not flag then + robot.turnAround() + flag = true + end robot.suck() robot.dropDown() else if flag then + robot.turnAround() os.sleep(5) - else flag = false end robot.suckDown()