-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProtocolManager.updateEntity method doesn't work in Spigot 1.17.1 #1417
Comments
I have also duplicated this problem with effectively the same code. updateEntity() on 1.16 will un-hide an entity that is destroyed, 1.17 with exact same code no longer shows the entity.
|
I have done some testing, and you have to send a SPAWN_ENTITY_LIVING packet like this:
Doing this with literally the same entity ID of the entity that was hidden will make the entity appear again to the client. |
Having the same issue, also in 1.17.1 |
Hey, sorry for the late response on this issue; thanks for the report! As we're changing quite a lot of code in v5.0 (see #1524 for now) I will keep this issue in mind and take a look into it when testing the new version. Might be that the issue is already resolved, will see. |
Note that players, paintings, exp orbs and other non-living entities use different packet types, so they require different handling. |
Got it, thanks! |
Describe the bug
Hello, I am using ProtocolLib to make a entity vanish from a player's client, so I send a ENTITY_DESTROY packet to a player. It works properly. Then I am going to use
updateEntity(org.bukkit.entity.Entity entity, List<org.bukkit.entity.Player> observers)
method to make the entity appear on the player client again, but it changes nothing on client.To Reproduce
I made a plug-in and run the following code. These code are expected to make all LivingEntities except Player vanishing and presenting in player's client alternatively.
Expected behavior
The entity around the player twinkles between appearance and disappearance every second. But entities don't present again after vanished.
Screenshots

This gif may shorternd by github automatically, you could see a longer version here if you want: https://global.cdn.blingwang.cn/2021/10/17/9233d3d691502.gif
Version Info
https://pastebin.mozilla.org/asyh7mqC/raw
Additional context
I don't know why the entity don't presents after disappearing. If the problem is caused by incorrect API call in my code, please don't hesitate to correct me. Thanks a lot.
Empty below.
The text was updated successfully, but these errors were encountered: