From 798fcc42a12743aa70dbda758e0919391cf1ad67 Mon Sep 17 00:00:00 2001 From: Dominic Zimmer Date: Wed, 8 Jul 2020 00:14:29 +0200 Subject: [PATCH] Poop --- mine/client.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mine/client.lua b/mine/client.lua index 497d1ca..5d89ade 100644 --- a/mine/client.lua +++ b/mine/client.lua @@ -123,9 +123,12 @@ function grabOres() local status, block = turtle.inspect() if status and block["name"]:lower():find("ore") then ore = block["name"]:lower() + print("digging"..tostring(ore)) if turtlestate["ores"][ore] then + print("+1") turtlestate["ores"][ore] = turtlestate["ores"][ore] + 1 else + print("=1") turtlestate["ores"][ore] = 1 end turtle.dig() @@ -410,6 +413,7 @@ function emptyToBarrel() end function drawStatus() + return print("Turtle ("..tostring(turtlestate["id"])..")") print() print(" \""..turtlestate["name"].."\"")