Added debug logging.

This commit is contained in:
Harrison Deng 2021-05-07 18:01:10 -05:00
parent 2895b1fd14
commit d1a0560446

View File

@ -142,6 +142,7 @@ local function attemptBreak(breakf, inspectf, notPattern)
if not exists then
return false
end
print("Block found: " .. data.name)
if string.match(data.name, pattern) then
return false
end
@ -409,7 +410,7 @@ local function quarry(x, y, z, forward, right, pattern)
x = tonumber(x)
y = tonumber(y)
z = tonumber(z)
sendLog(QUARRY, "Starting quarry of (x length,depth,z length): " .. x .. "," .. y .. "," .. z)
sendLog(QUARRY, "Starting quarry of (x length,depth,z length): " .. x .. "," .. y .. "," .. z .. " with a not pattern of: " .. pattern)
for yDelta=1,math.abs(y) do
for xDelta=1,math.abs(x) do
for zDelta=1,math.abs(z) do