SoRadGaming / Simple-HUD-Enhanced

https://discord.gg/2NY3a3AJ8e Minecraft mod that enhances the game's Heads-Up Display (HUD) by introducing customizable elements and features to display information.
MIT License
4 stars 1 forks source link

Armor HUD does not update on settings change #58

Open JacksonChen666 opened 1 week ago

JacksonChen666 commented 1 week ago

Describe the bug Changing settings like "Display Total Durability" will not be immediately reflected in the HUD (unless updated via other means like durability change, armor equipping or unequipping, or item change).

To Reproduce Steps to reproduce the behaviour:

  1. Wear some piece of armor
  2. Open settings for the mod
  3. Go to "Equipment Status"
  4. Change any setting under the "Equipment Elements" section
  5. Save settings and go back to game
  6. Observe that the settings haven't been applied
  7. (workaround to make settings apply) Switch to another item, equip or unequip a piece of armor, or use the durability or armor, or something that updates the HUD.

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Minecraft (please complete the following information):

Additional context

SoRadGaming commented 1 week ago

Oh yep, I recreated the same issue on all game versions; I forgot to invalidate the cache on config updates; it's a simple fix; thanks for bringing it to my attention.