Closed coolsa closed 2 years ago
This should be merged into the 1.17 branch, as 1.18 is based on that branch
Also there shouldn't be a way to trigger this crash if the entity has been actually spawned into the world before being added as a receiver, unless a null entity is actually added
Just changed this to target the 1.17 branch, though the issue that was causing it was my of my own making, so the safety check isn't really needed, outside of some unforeseen or incredibly rare error. Closing this PR.
Just added a single check to see if the entity in the garbage collection list is null, preventing a crash on the tick when a speaker entity is added.