Big_J 1 Share Posted March 29, 2021 According to the javadocs of Walking.walk: Returns: true if tile was walked to successfully. In the current version (3.4.5) this is not the case, and the method returns true no matter what, this was not the case in previous versions, and this has caused my scripts to stop working as they relied on this logic. Confirmed by running log(Walking.walk(CADAVA_BUSH_TILE)) In a loop, the method returned true each time. Link to comment Share on other sites More sharing options...
Pandemic 2711 Share Posted March 29, 2021 That method hasn't changed in a long time, and the docs are a bit off, as it returns true if it's able to create a path and make progress at all (not necessarily end up at the goal tile). Your logic should check distance to that tile, and only act on what Walking#walk returns if it's false. Link to comment Share on other sites More sharing options...
Big_J 1 Author Share Posted March 29, 2021 Okay, thanks for the clarification. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.