Closed Mrflaxe closed 2 years ago
It's hard to tell without seeing your code, can you check my RPGHuds code and see if you're missing something? https://github.com/LoneDev6/RPGhuds/
Maybe you have to implement a similar method? https://github.com/LoneDev6/RPGhuds/blob/1d506605ae9dc23525af8bd237f7feae2084abb1/src/main/java/dev/lone/rpghuds/core/data/Hud.java#L60
Terms
Discord tag (optional)
Mrflaxe#2547
What happened?
I just have made a banner system via HUDs and detected the strange thing. When my bleeding banner appeared, for some reason my thirst HUD, hunger HUD, and the banner itself moved by 1 pixel to right. I am sure that I use PlayerHudsHolderWrapper#recalculateOffsets(); everywhere where it's supposed to be. When the banner disappeared all went back to a normal state.
Video demonstration: https://youtu.be/xt_hx4ItrnA
Steps to reproduce the issue
I really don't know how you can reproduce this without my source code, but I will try to describe, what I did.
I created 3 custom HUD indicators which consist of 2 custom HUDs. One for background and another for characters. So for indicators (health. hunger and thirst), there are 6 HUDs. It updates only when the value of each parameters changes.
And now I tried to create a banner manager to display players some important information like in the RUST game. When I finished it and display the test bleeding banner I detected this problem.
My banner manager displays to a player 3 HUDs at once for each banner. One for background, second for some text, and third for the value if necessary at the end.
Server version
git-Paper-786 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
ItemsAdder Version
ItemsAdder version 2.5.5
ProtocolLib Version
ProtocolLib version 4.7.0
LoneLibs Version
LoneLibs version 1.0.16b
LightAPI Version (optional)
LightAPI version bukkit-5.1.0 (build SNAPSHOT)
LibsDisguises Version (optional)
No response
FULL server log
latest.log
Error (optional)
No response
ItemsAdder config.yml
Problematic items yml configuration file (optional)
No response
Other files, you can drag and drop them here to upload. (optional)
No response
Screenshots/Videos (you can drag and drop files or paste links)
https://youtu.be/xt_hx4ItrnA