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

Showing 0 when armour is not equiped. #27

Closed serbinskis closed 1 year ago

serbinskis commented 1 year ago

Describe the bug Slots where armor is supposed to be shown show 0 when not equipped.

To Reproduce Steps to reproduce the behavior:

  1. Open the game

Expected behavior I think that those 0 should not be there.

Screenshots image

Minecraft (please complete the following information):

SoRadGaming commented 1 year ago

Do you have anything equipped or any other mods that have custom armour? As my code should, by default, have no text, 0 can only be added when getting the durability of the item or getting the amount of the item (which armour doesn't support). Also, it's weird that there are 5 of the "0".

serbinskis commented 1 year ago

Do you have anything equipped or any other mods that have custom armour? As my code should, by default, have no text, 0 can only be added when getting the durability of the item or getting the amount of the item (which armour doesn't support). Also, it's weird that there are 5 of the "0".

These are the mods that I have and yes, I can confirm it was a conflict with mod Visible Barriers: https://modrinth.com/mod/visiblebarriers image

SoRadGaming commented 1 year ago

Thanks for the information, I will try to get this fixed with Update 4.4.0 https://github.com/SoRadGaming/Simple-HUD-Enhanced/pull/26

SoRadGaming commented 1 year ago

I found the issue: their mod makes air blocks visible, and my mod treats air as nothing; hence, they override the code and make it appear anyway. I fixed it now (I just checked for item count); I'm just trying to get other features in the update working before release.