ProtocolLib

3M Downloads

ProtocolManager#updateEntity ghost a player when they are in different worlds

0ddlyoko opened this issue ยท 2 comments

commented

Follow this template except for feature requests. Use pastebin when providing /protocol dump and any relevant errors.

Make sure you've done the following:

  • You're using the latest build for your server version
  • This isn't an issue caused by another plugin
  • You've checked for duplicate issues
  • You didn't use /reload

Debug paste link:
https://pastebin.com/r9Gjuduy

Description and relevant errors:
I have a plugin that vanish players in a zone and unvanish him when he quits his zone.
To unvanish him, I just call ProtocolManager#updateEntity(Entity, List) to update all packets.
When I call this method, all works, but if both players are in different worlds, it create a kind of "ghost".

image

As you can see in above image, the player on the top see a ghost of the other player event if the other player isn't in the same dimension.
If you want the code, he is here
I can fix that just by checking if players are in different worlds like here but I'm pretty sure it's a bug from ProtocolLib

commented

I'm not so sure that's a ProtocolLib bug, seems like a Minecraft bug. Is there a problem with checking if they're in different worlds?

commented

That was fastly fixed (I just checked the world) but this bug is strange. If you think it's a Minecraft bug, I'll close this ticket