Skip to content

Fix: RootEvent.java where - #521

Draft
JMorris0n wants to merge 1 commit into
chsami:mainfrom
JMorris0n:rising-root-fix
Draft

Fix: RootEvent.java where#521
JMorris0n wants to merge 1 commit into
chsami:mainfrom
JMorris0n:rising-root-fix

Conversation

@JMorris0n

Copy link
Copy Markdown
Contributor

I noticed a bug where it would click the root every 5 seconds, even when already performing the woodcutting animation.
Replaced Rs2Player.isInteracting() with Rs2Player.isAnimating()

This ensures the loop blocks until the chopping animation stops or the root disappears.

Testing at the moment.

Replaced
sleepUntil(() -> !Rs2Player.isInteracting(), 40000); 
with 
sleepUntil(() -> !Rs2Player.isAnimating() || !this.validate(), 40000);

This ensures the loop blocks until the chopping animation stops or the root disappears.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant