diff --git a/dominic/canemine.lua b/dominic/canemine.lua index 5b01359..5fccc18 100644 --- a/dominic/canemine.lua +++ b/dominic/canemine.lua @@ -58,8 +58,8 @@ end -- If the block in front of the turtle is desired, take it. function grabOres() - local target = turtle.inspect() - if target and target["name"]:lower():find("ore") then + local status, block = turtle.inspect() + if status and block["name"]:lower():find("ore") then turtle.dig() end end