From d2c712614611a9fa336dd41bde34fd9b7ab1f6b7 Mon Sep 17 00:00:00 2001 From: Dominic Zimmer Date: Sat, 4 Jul 2020 14:07:26 +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 5fccc18..ee96e75 100644 --- a/dominic/canemine.lua +++ b/dominic/canemine.lua @@ -81,8 +81,8 @@ function digDeep(moveAction, digAction, inspectAction, limit) -- * if limit != -1: limit > 0 -- * otherwise : bedrock beneath if limit < 0 then - local nextblock = inspectAction() - if nextblock and nextblock["name"] == "minecraft:bedrock" then + local status, nextblock = inspectAction() + if status and nextblock["name"] == "minecraft:bedrock" then return depth end else