From 7b047df3918a71209fab3bc6ead63ef8ea37e5be Mon Sep 17 00:00:00 2001 From: Dominic Zimmer Date: Sat, 4 Jul 2020 14:06:28 +0200 Subject: [PATCH] Update canemine --- dominic/canemine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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