Commit Graph
2 Commits
Author SHA1 Message Date
charagarlnad 11179e43e6 fix health bar not being shifted up by DualHotbar (#98) 2023-10-10 21:41:11 +02:00
Alexdoru 098783fa1e Fix health bar renderer (#97)
* 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
2023-09-24 19:31:03 +02:00