Fixed moveby logging.

This commit is contained in:
Harrison Deng 2021-05-07 20:16:54 -05:00
parent 312cb33544
commit e3e7431d87

View File

@ -378,7 +378,7 @@ local function moveTo(dest)
local oldPos = nil
while not vectorEqual(dest, position) do
if oldPos ~= nil and vectorEqual(oldPos, position) then
sendLog(FAILED, "Cannot proceed to due obstacle. XYZ being blocked: " .. xBlocked .. "," .. yBlocked .. "," .. zBlocked)
sendLog(FAILED, "Cannot proceed to due obstacle. XYZ being blocked: " .. tostring(xBlocked) .. "," .. tostring(yBlocked) .. "," .. tostring(zBlocked))
break
end
oldPos = vector.new(position.x, position.y, position.z);