Update canemine

This commit is contained in:
Dominic Zimmer 2020-07-04 14:06:28 +02:00
parent c7110f161c
commit 7b047df391

View File

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