-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
When switching between backend servers through a Velocity proxy, MapModCompanion sends the world ID packet before the client has fully loaded into the new world. This causes mods that act on the packet immediately (such as JourneyMap) to crash with a NullPointerException because mc.level is still null at the time the packet is received.
To Reproduce
- Set up two Minecraft backend servers behind a Velocity proxy, both with MapModCompanion installed
- Connect to the first server
- Use Velocity to switch to the second server
- Observe the receiving mod crash/error on the render thread
Expected behavior
The world ID packet should be sent only after the player is fully loaded into the world on the new backend server, so that mc.level is guaranteed to be non-null on the client when the packet arrives.
Evidence
JourneyMap logs show the packet arriving at 21:23:38 during the transfer window, at which point mc.level is null:
[21:23:38] [Render thread/ERROR] [MappingMonitorTask] NullPointerException: Cannot invoke "net.minecraft.client.multiplayer.ClientLevel.dimension()" because "mc.level" is null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels