diff --git a/mineleader.lua b/mineleader.lua index 1757cb0..b02bdfc 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -366,6 +366,7 @@ local function moveBy(delta, forward, right) end local function moveTo(dest) + dest = vector.new(tonumber(string.format("%.0f", dest.x)), tonumber(string.format("%.0f", dest.y)), tonumber(string.format("%.0f", dest.z))) 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.")