Hydration animation sometimes does not play properly #394
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
java
Pull requests that update Java code
up for grabs
Any issue that is up for grabs
Milestone
Bug Description
On occasion, the hydration animation fails to play when a hydration interval has completed.
Steps to Reproduce
Expected Behavior
The hydration animation should play after each hydration interval as long as the setting is enabled.
The issue is that in the
playAnimationForLocalPlayer
method, the animation is properly set but the animation frame is not set. The animation frame has to also be set for the animation to play out consistently and properly.Environment
Operating System: MacOS Monterey
RuneLite Version: 1.9.1
Additional Context
For an example of another plugin that has fixed this issue, see: https://github.com/Enriath/external-plugins/blob/door-kicker/src/main/java/io/hydrox/doorkicker/DoorKickerPlugin.java
Please add/update any unit tests where possible.
Please refer to CONTRIBUTING.md for info on how to setup, build, run, and test this project. Feel free to ping @jmakhack in the comments below with any questions if needed. Also, join the Discord to meet and engage with other contributors!
The text was updated successfully, but these errors were encountered: