leijurv / MineBot

35 stars 5 forks source link

Add a way to cancel pathfinding #14

Open averycowan opened 8 years ago

averycowan commented 8 years ago

Possibly a thread safe static boolean in the main pathfinding class that indicates to the pathfinding thread to stop safely.

How should this be set back to false? When the path is ended in the path thread or when a new path thread is created?

leijurv commented 8 years ago

Note: MineBot.plsCancel is related to this I think