Update craftCrystal.lua

This commit is contained in:
erius0 2021-01-05 17:00:10 +03:00 committed by GitHub
parent 58fd221b10
commit 5196d3881c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()