~ruther/NosSmooth

107e3404e8fae3a83527fad979b1c33f0c8cb8de — Rutherther 2 years ago c75ac45
fix(pathfinding): return custom PathNotFoundError instead of NotFoundError
1 files changed, 1 insertions(+), 1 deletions(-)

M Extensions/NosSmooth.Extensions.Pathfinding/Pathfinder.cs
M Extensions/NosSmooth.Extensions.Pathfinding/Pathfinder.cs => Extensions/NosSmooth.Extensions.Pathfinding/Pathfinder.cs +1 -1
@@ 92,7 92,7 @@ public class Pathfinder
    {
        if (!mapInfo.IsWalkable(targetX, targetY))
        {
            return new NotFoundError("The requested target is not walkable, path cannot be found.");
            return new PathNotFoundError(targetX, targetY);
        }

        if (x == targetX && y == targetY)