[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. It works at first, but after getting a health update it breaks. example: healthscale is set to 20. the players maxhealth and health are both set to 1. |
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. |