meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

[Bug] PlayerRadarHud causes crash

Open nicdv1337 opened this issue 6 months ago • 2 comments

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

  • [x] This bug wasn't already reported (I have searched bug reports on GitHub).

  • [x] This is a valid bug (I am able to reproduce this on the latest dev build).

nicdv1337 avatar May 24 '26 16:05 nicdv1337

:3

Frko5000 avatar Jun 07 '26 04:06 Frko5000

https://github.com/MeteorDevelopment/meteor-client/issues/6474

I madea new report for the same bug. In build #27 it has not been fixed.

nicdv1337 avatar Jun 14 '26 21:06 nicdv1337