Describe the bug
PlayerRadarHud causes crash when switching servers in a hub system.
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.position()" because "entity" is null at meteordevelopment.meteorclient.systems.hud.elements.PlayerRadarHud.lambda$getPlayers$0(PlayerRadarHud.java:207)
When the server sends a StartConfigurationPacket (which is what triggers a server switch on a hub), Minecraft starts clearing the current level/world. At that exact moment, Meteor's Player Radar HUD element is still rendering and tries to sort nearby players by distance. One of those player entities is already null (being cleaned up), so it crashes trying to call .position() on it.
The second error (this.level is null) is just a cascade from the first crash — the world is already gone by the time the renderer tries to continue.
Steps to reproduce
It happens every time I try to switch to a different server on a hub network.
I have only tried it on one specific server though.
Meteor Version
Meteor Client 26.1.2 build #22
Minecraft Version
26.1.2
Operating System
Windows
Before submitting a bug report
Describe the bug
PlayerRadarHud causes crash when switching servers in a hub system.
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.position()" because "entity" is null at meteordevelopment.meteorclient.systems.hud.elements.PlayerRadarHud.lambda$getPlayers$0(PlayerRadarHud.java:207)When the server sends a StartConfigurationPacket (which is what triggers a server switch on a hub), Minecraft starts clearing the current level/world. At that exact moment, Meteor's Player Radar HUD element is still rendering and tries to sort nearby players by distance. One of those player entities is already null (being cleaned up), so it crashes trying to call .position() on it.
The second error (this.level is null) is just a cascade from the first crash — the world is already gone by the time the renderer tries to continue.
Steps to reproduce
It happens every time I try to switch to a different server on a hub network.
I have only tried it on one specific server though.
Meteor Version
Meteor Client 26.1.2 build #22
Minecraft Version
26.1.2
Operating System
Windows
Before submitting a bug report
This bug wasn't already reported (I have searched bug reports on GitHub).
This is a valid bug (I am able to reproduce this on the latest dev build).