Majrusz / MajruszLibrary

Library with common code for my Minecraft modifications.
8 stars 6 forks source link

Null Pointer Exception in handling of a EntityGlow event #51

Closed roobscoob closed 7 months ago

roobscoob commented 7 months ago

https://github.com/Majrusz/MajruszLibrary/blob/2b381e413080034c28137f5bb215b1d5463f5efd/common/src/main/java/com/mlib/entity/EntityHelper.java#L230

The server may send an EntityGlow event for an entity the client does not have. this causes the client to crash.

image

In testing on 1.20.1 this occurred when a client with sufficient latency killed a mob while it was glowing.

roobscoob commented 7 months ago

This also applies for Invisibility too

Majrusz commented 7 months ago

Thanks for the report, I fixed it with 4af8cb9e459b927c548ec8a6afa9c286a39213ee and soon I will release a new version