ProtocolLib

3M Downloads

[PLib 5.0.0] [PacketType.Play.Server.ENTITY_METADATA] Issues with getting entities

SkyLicks opened this issue ยท 1 comments

commented
  • This issue is not solved in a development build

Describe the bug
I was having issues with retrieving entities in the latest version of ProtocolLib. The last version this code was working on was 4.6.0.

To Reproduce
You can reproduce this effect with this code: https://pastebin.com/Sph1uMxc
(Will need to make minor changes to get this to work on your test plugin)

Expected behavior
Well, I expect my health spoof code to continue to work in 5.0.0 and get no errors in console

Screenshots
image

Version Info
https://pastebin.com/4hGnAHZL

Additional context
Might be related to: #1595

commented

This is caused by all listeners being in async by default.
https://www.spigotmc.org/threads/protocollib-get-entity-from-entityid-error.550321/

Newest version of protocol lib adds a listener option for forced-sync listeners.