Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix heart display on webmap when hearts are more than 10 #12

Open
granny opened this issue Nov 6, 2023 · 3 comments
Open

fix heart display on webmap when hearts are more than 10 #12

granny opened this issue Nov 6, 2023 · 3 comments
Labels

Comments

@granny
Copy link
Owner

granny commented Nov 6, 2023

If you have more than 10 hearts, it stops displaying the hearts.

image

image

@granny granny added the webmap label Nov 6, 2023
@ydal251
Copy link
Contributor

ydal251 commented Nov 24, 2023

A simple workaround could be just extending the image used to generate the hearts on the web map. I've used the vanilla absorption heart colors here to extend the health range displayed correctly out to 40 (20 hearts). The map also currently doesn't display the temporary hearts added by absorption from golden apples or similar only permanent hearts

health

@granny
Copy link
Owner Author

granny commented Nov 24, 2023

That could work. The solution I was planning on going for is something like the Colorful Hearts mod where it's more dynamic/customizable. Wanted to do something similar with the armor hit points as well so this could be generalized as "improve the player nameplate"

@ydal251
Copy link
Contributor

ydal251 commented Nov 24, 2023

Dynamic generation would be ideal compared to an image that just includes hundreds of health states, it unfortunately looks like you can't just drop this image in at /plugins/Pl3xMap/web/images/ on an existing installation and just use /pl3xmap reload to enable it live, and the extended image would have to be included before compiling for it to be used by the webmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants