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