From d720eaf468b715676d518a5ebc865215b47857b9 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Wed, 5 May 2021 18:55:44 -0500 Subject: [PATCH] Moveto exits when lacking location information. --- mineleader.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mineleader.lua b/mineleader.lua index e68e3d2..18798c3 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -370,6 +370,7 @@ local function moveTo(dest, range) sendLog(MOVETO, "Attempting to move by (" .. dest.x .. "," .. dest.y .. "," .. dest.z .. ") (x,y,z).") if position == nil or heading == nil then sendLog(FAILED, "Position or heading is invalid.") + return end local xBlocked, yBlocked, zBlocked = false, false, false local oldPos = nil