showierdata9978 / Pickaxe-mod

Pickaxe-mod
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

[bug] Hunger bar looks odd #15

Closed MystWraith closed 1 year ago

MystWraith commented 1 year ago

Describe the bug The final hunger bar is still shown with the money, but the border is removed.

To Reproduce Steps to reproduce the behavior:

  1. Join in a way that enables the mod
  2. Look at the hunger bar

Expected behavior The hunger bar is either completely hidden or the border is included on the final hunger icon.

Screenshots Your own screenshot of the error on the main page.

Desktop (please complete the following information):

Additional context I could understand the point of leaving the final hunger icon around to show if hunger is applied, though it's purpose alluded me for a while. Though, if there could be an option to completely hide it, I would appreciate it. Also, if it is going to stay, please add the background back please.

JandBDavenport commented 1 year ago

ShowierData is aware of this but doesnt know how to fix it

MystWraith commented 1 year ago

I think it has to do with the background of the hunger bar being a separate render. It actually renders the entire empty bar all at once (if I recall correctly) and it might help if the sprite for the background hunger bar is not removed but changed to a different version containing only the last one.

MystWraith commented 1 year ago

Bc it seems like the texture for full hunger was removed and so was the background texture, causing the weird visual bug.

MystWraith commented 1 year ago

I checked the source and noticed that hunger is actually getting shrunk to width 0, which is interesting. I don't know if this method could fix this bug, but it might be possible to change textures.