mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
fix missing core:pathfinding 'reset_route' function
This commit is contained in:
parent
e08c51aa43
commit
83f7146a14
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ function get_route()
|
||||||
return route
|
return route
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function reset_route()
|
||||||
|
route = nil
|
||||||
|
end
|
||||||
|
|
||||||
function next_waypoint()
|
function next_waypoint()
|
||||||
if not route or #route == 0 then
|
if not route or #route == 0 then
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue