mojira.dev
MC-12013

Experience Orbs invisible for one second right after spawning

While testing MC-4167 discovered that XP Orbs would be invisible for one second "switching location" like described in MC-4167.

To reproduce:

  • Kill a mob, watch how no XP is visible right after the corps disappears in smoke particles

  • Mine a diamond ore, xp appears 1 second after mining it

  • breed animals

  • throw a bottle o' enchanting, same effect

Linked issues

MC-11601 Packet 26 (EXP orb entity spawn) send/receive disparity Resolved MC-12537 Experience Orbs not displaying at all or intermittently displaying. Resolved MC-15590 XP orbs take a long time to render. Resolved MC-15869 XP are invisible Resolved MC-29482 Bottle O enchanting xp doesnt show up immediately Resolved

Comments 17

Confirmed.

Most noticeable to me when mining (the sounds play and the XP bar fills, but no orbs are visible; occasionally I'll see one if I'm far enough away), but I have observed with XP from mobs as well.

This is really annoying, I can't tell whether or not I picked up all the XP from something I killed and I have to go back.

Still in 13w25b

Still in 1.6 prerelease.

7 more comments

Confirmed for 14w11b

Confirmed for 14w21b

Solution (MCP Names):
in NetClientPlayHandler's handleExpOrb or something similar, the coordinates of the xp orb are retrieved from the packet and used in the constructor of a new EntityXPOrb. However, those coordinates are still 32x the actual coordinates (to aid in network communication)
So simply divide each coordinate by 32.0D and the problem is fixed

Confirmed for 14w29b.

Confirmed for release 1.8

Tails

michael

Confirmed

experience, experience_orb, invisible

Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Snapshot 13w16a, Snapshot 13w16b, ..., Minecraft 14w11b, Minecraft 1.7.6-pre1, Minecraft 14w21b, Minecraft 14w29b, Minecraft 1.8

Minecraft 1.8.1-pre3

Retrieved