Dockid 9 Share Posted March 10, 2021 Can anyone help me solve this problem, when my bot goes to click 'cross' on the wilderness ditch it spams like a madman despite having a sleepUntil set. sleepUntil(() -> ditch.interact("Cross"), 5000); Link to comment Share on other sites More sharing options...
Hashtag 8670 Share Posted March 10, 2021 The condition is repeatedly being called for up to 5 seconds. In your case the condition is an interaction. Therefore, the interaction is executed repeatedly. You're not supposed to put the interaction in the sleepUntil. Put it in an if statement and if the interaction was successful, use sleepUntil until you're on the other side of the ditch Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.