From 507a01618278e703df2dcf8d9ee8e5f1ba311017 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 7 May 2021 17:22:54 -0500 Subject: [PATCH] Fixed minehost accessing nil variable. --- minehost.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minehost.lua b/minehost.lua index 91da9c8..cbd670d 100644 --- a/minehost.lua +++ b/minehost.lua @@ -92,7 +92,7 @@ local function listenForCommands() sendDirective(LEADER, MOVETO, x, y, z) elseif string.find(input, QUARRY) == 1 then deltasRaw = string.sub(input, string.len(QUARRY) + 1 + 1) - local deltas = captureString(coordsRaw, "([+-]?%d+)") + local deltas = captureString(deltasRaw, "([+-]?%d+)") sendDirective(LEADER, QUARRY, deltas[1], deltas[2], deltas[3]) end end