1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Path#step() returning false while traversing

Discussion in 'Developer Support' started by Savior, Feb 11, 2017.

  1. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    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

     
  2. Best Answer:
    Post #5 by Cloud, Feb 19, 2017
  3. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    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?
     
  4. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    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.
     
  5. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    It won't return false in the next release.
     
    Savior likes this.

Share This Page

Loading...