Glider sprite reanimates when taking damage ticks
WesCook opened this issue ยท 1 comments
Issue Description:
The glider will trigger the re-equip animation upon taking damage. This is often necessary to update any information about the item when its metadata changes, but I believe it is unnecessary in this case. You should be able to override shouldCauseReequipAnimation to create a more fluid gliding animation.
What happens:
The glider redraws on each damage tick.
What you expected to happen:
The glider should be a smooth animation, and only the damage bar itself should update.
Steps to reproduce (important):
- Fly either glider in survival mode.
- Upon taking durability damage, the glider will trigger the re-equip animation.
Affected Versions (Do not use "latest"):
- OpenGlider: 1.10.2-0.2.0
- Minecraft: 1.10.2
- Forge: 12.18.3.2221
Unfortunately this one isn't quite as simple of a fix as that, as I change the item texture dynamically depending on the state it is in, and a simple override to shouldCauseReequipAnimation doesn't quite do the trick (it leads to Issue #3 if added). I need to look at what exactly this method does behind the scenes (Mojang code) and possibly refactor my code to use something like NBT to save states instead if needed.
Thanks so much for the great bug reports by the way! ๐ฅ ๐