SpluoSplatus / Vanilla-Refresh

Enhancing Minecraft's experience with a variety of 30+ QOL features, like player sitting and a day counter.
1 stars 4 forks source link

Player max health expected to be 20 regardless of what it actually is(compatability issue with mods & datapacks) #22

Closed Bowswa closed 1 month ago

Bowswa commented 2 months ago

Description When a mod/datapack modifies the max health of the player, it creates unexpected issues with the hotbar display as it expects the player's max health to be 20 at all times, regardless of if it actually modified or not.

Steps To Reproduce (optional)

  1. Use an origin or other mod/datapack that modifies the player's health
  2. be near another player
  3. the viewing player will see the bugged health 3a. max health going above will be something like 24/20 3b max health going lower will be something like 16/

Minecraft Version: 1.20.1 (no bug fix included in changelogs since)

SpluoSplatus commented 1 month ago

confirmed! will add functionality for this soon.

note that when this is patched it will only be patched for the latest 1.21 versions

for now, you can address this by manually setting health with this command: /scoreboard players set @s refresh_maxhealth 20 <<edit that number

SpluoSplatus commented 1 month ago

bug fixed! fixed in latest 1.21 version 1.4.24e