Attempting to remove or add a Hud with F1 (hidden hud) causes the Hud to persist, making it so that there may be more than 1 when there should only be 1 or that there is 1 when it should be disabled.
Thanks for reporting this and bringing my attention to the Hud again - this whole pending addition/removal system was a bit... ill-guided from the start. I've made some changes in 0.12.5 (check the changelog) which should alleviate all the problems
Description
Attempting to remove or add a Hud with F1 (hidden hud) causes the Hud to persist, making it so that there may be more than 1 when there should only be 1 or that there is 1 when it should be disabled.
Code
Reproduction steps
Temporary solutions
If before calling Hud.remove or Hud.add you put
it will disable f1, although you can't enable it immediately afterwards since Hud works through events
Versions
owo_version=0.12.3+1.20.3 minecraft_version=1.20.4 fabric_version=0.93.1+1.20.4