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