Exp bar is not updated after sending UpdateAttributesPacket, but if i send TextPacket or change player inventory it updates successfully. This bug affects only experience, other things like hunger and health works fine. Tested on pmmp, nukkit, minet, local server.
Steps to reproduce:
1. Send UpdateAttributesPacket with exp level more than player have
2. Notice that it won't update
3. Send message to player and notice that bar updated
UPDATE
You can also test it on local server.
1. Host server on first device and connect from second to it.
2. On first device type
/xp 1L second_device_name
3. See that exp bar don't updates
Linked issues
is duplicated by 5
relates to 1
Attachments
Comments 6
So the bug seems to be a gfx issue. Any type of action that triggers a redraw will update the level-text, otherwise not. I can reproduce it on MiNET if I don't use a command (since that will redraw the screen when exiting the chat).
Affects hosts since 1.1.* beta. Xp bar does not update (you can open and close the inventory to update it)
Only seen since 1.1 for me. Attacking again with a sword or changing the active item through the hotbar, also causes an xp bar update. I can punch mobs for quite a while with my hand without an update though.
I just tested this with MiNET-.
command.cs
Works just fine,