[SPIGOT-1613] Player HealthScale not working. Created: 01/Mar/16  Updated: 05/Mar/16  Resolved: 05/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jessie P Assignee: Unassigned
Resolution: Fixed Votes: 4
Labels: 1.9, Health, Packet
Environment:

Windows 10



 Description   

Player.setHealthScale() is not working properly.
was working in spigot 1.8

It works at first, but after getting a health update it breaks.
the max health works, but the actual health doesn't

example: healthscale is set to 20. the players maxhealth and health are both set to 1.
after updating the players health will change to 1/2 heart (1hp), but the max health will be correctly displayed at 10 hearts (20hp).



 Comments   
Comment by Jessie P [ 04/Mar/16 ]

It sends the first packet scaled, but then immediately tells the client the correct health. this will cause the client to play the damage animation.

Comment by andrew chi [ 02/Mar/16 ]

Can confirm this is true. If Healthscale is being used, the player's health always shows up max. Sometimes it displays the right scaled health, but sometimes it does not.

Generated at Fri Mar 21 18:35:23 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.