Fixed minehost accessing nil variable.

This commit is contained in:
Harrison Deng 2021-05-07 17:22:54 -05:00
parent fcd34d42a7
commit 507a016182

View File

@ -92,7 +92,7 @@ local function listenForCommands()
sendDirective(LEADER, MOVETO, x, y, z) sendDirective(LEADER, MOVETO, x, y, z)
elseif string.find(input, QUARRY) == 1 then elseif string.find(input, QUARRY) == 1 then
deltasRaw = string.sub(input, string.len(QUARRY) + 1 + 1) 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]) sendDirective(LEADER, QUARRY, deltas[1], deltas[2], deltas[3])
end end
end end