diff --git a/miner.lua b/miner.lua index 5c3a53e..41705c9 100644 --- a/miner.lua +++ b/miner.lua @@ -145,7 +145,12 @@ local function mineProcedure() -- 1. Move if robotState.y > targetY then - turtle.digDown() + local ok, err = turtle.digDown() + + if not ok then + error('Cannot dig down because ' .. err) + end + miner.robot.down() elseif robotState.dir == 'FORWARD' and robotState.z < targetZ then turtleUtils.digAll()