-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix health bar renderer #97
Conversation
… vanilla renderHealth method
…asting certain vanilla methods
…raw the top most hearts
|
I did not know, where is that ? |
@Alexdoru nevermind it was the Armor bar not the health bar. https://github.com/GTNewHorizons/OverloadedArmorBar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine as long as it's tested in game
* delete unused locals * add some code that has been forgotten when copying and overriding the vanilla renderHealth method * create dedicated class HealthBarRenderer extending Gui to stop copy-pasting certain vanilla methods * fix renegeration hearts moving when the game is paused * only bind tinkers hearts textures if it's actually going to draw tinkers' hearts * stop drawing vanilla hearts when they are hidden by tinkers' heart being drawn on top * fix tinker's half heart not moving with regeneration * fix drawing all tinkers' hearts on top of each others, and now only draw the top most hearts * add comment to help with debugging
Tinkers constructs completely overwrites the health bar rendering and there were multiple bugs with it. Notably it was drawing all of the hearts that your character has on top of each other even though you can only see the 10 hearts at the very top, costing performance for nothing.
In this pr I :