Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Boolean flewOff = false;
- //in on loop
- if(flewOff = true){
- getBirdBack();
- flewOff = false;
- }
- //on message is the only other part where flewOff is handled
- public void onMessage(String message) throws InterruptedException {
- if (message.contains("prey")) {
- flewOff = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement