Syntax
This commit is contained in:
parent
eb535fa029
commit
4269615573
@ -82,12 +82,15 @@ function digSafe(inspectAction, digAction)
|
||||
local status, block = inspectAction()
|
||||
if status then
|
||||
if block["name"]:lower():find("turtle") then
|
||||
-- turtle in front of me. lets wait for it to move
|
||||
-- turtle in front of me. its free space
|
||||
return true
|
||||
else
|
||||
digAction()
|
||||
-- gravel may take time to fall.
|
||||
sleep(0.6)
|
||||
end
|
||||
else
|
||||
-- No block in front of me. good
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user