Skip to content

[Bug] PlayerRadarHud causes crash #6433

@nicdv1337

Description

@nicdv1337

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions