Fixed moveby logging.
This commit is contained in:
parent
312cb33544
commit
e3e7431d87
@ -378,7 +378,7 @@ local function moveTo(dest)
|
|||||||
local oldPos = nil
|
local oldPos = nil
|
||||||
while not vectorEqual(dest, position) do
|
while not vectorEqual(dest, position) do
|
||||||
if oldPos ~= nil and vectorEqual(oldPos, position) then
|
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
|
break
|
||||||
end
|
end
|
||||||
oldPos = vector.new(position.x, position.y, position.z);
|
oldPos = vector.new(position.x, position.y, position.z);
|
||||||
|
Loading…
Reference in New Issue
Block a user