Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Path#step() returning false while traversing

Java Warlord
Joined
Nov 17, 2014
Messages
4,906
If the traversal option MANAGE_DISTANCE_BETWEEN_STEPS prevents the bot from stepping a path, step() returns false.
The method should only return false if the next vertex could not be stepped, as an indicator that a cached path needs to be re-generated.

@Cloud
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
I'm inclined to agree, but then if you aren't going to be taking a step that iteration would returning false not also be appropriate?
 
Java Warlord
Joined
Nov 17, 2014
Messages
4,906
I'm inclined to agree, but then if you aren't going to be taking a step that iteration would returning false not also be appropriate?
Yep that's why i want the return value not be a boolean, because 2 values are not enough. But cloud told me to make a thread because it should not return false.
 
Top