mojira.dev
MCPE-20130

Experience is not updated after UpdateAttributesPacket

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

Attachments

Comments 6

I just tested this with MiNET-.

command.cs

[Command]
public void Xp(Player player)
{
	player.Experience += 0.1f;
	player.ExperienceLevel += 1;
	player.SendUpdateAttributes();
}

Works just fine,

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).

Cannot reproduce on two Apple iPad mini devices, both are running iOS 9.3.5

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.

Yeah I've noticed that anything which changes the hotbar at all, even the durability of an item being lowered, also causes the xp bar to update.

Not a gamebreaking bug, but interesting.

Maksim Sunduk

(Unassigned)

59949

Confirmed

Windows

Windows 10

experience

1.0.3, 1.0.4.11, 1.0.5.0, 1.0.5.13, 1.0.6.52, ..., 1.1.0.8, 1.1.0.9, 1.1.0.55, 1.1.4.51, 1.2.0.2

1.2.0.11

Retrieved