mojira.dev
MC-299029

When the host of a LAN world disconnects, the control over their mount transfers to its secondary passenger

The bug

I, the LAN host, was piloting a happy ghast with my friend on my LAN world and decided to log out in the air. When I rejoined, the happy ghast was gone, and my character fell out of the sky to their death. Camels and boats have the same problem.

It appears that in the brief timeframe between the host disconnecting and the server closing, the game makes the remaining passenger the new controller of the mount. While this is generally expected in other multiplayer scenarios, it isn't when the controller is the LAN host, as the new controller will not be able to continue driving the mount anyway.

Steps to reproduce

  1. Open a world to LAN.

  2. Have another player join the LAN world.

  3. Mount any multiple-player mob (e.g., happy ghast, boat, or camel) as its controller.

  4. Have the other player mount the same multiple-player mob as a secondary passenger.

  5. Disconnect, kicking the other player.

  6. Rejoin the world.

Observed behavior

The mount will have become bound to the guest, meaning it's gone for the host and owner of the world.

Expected behavior

The LAN host would maintain control of the mount because they will always be the first to enter the world.

Comments 2

Same,and the mounts will appear when the player log backs. I use carpet mod and the mount will appear without passenger when i spawn a fake player.

Please do not mark Unreleased Versions as affected. You don’t have access to them yet.

T. Pichoff

(Unassigned)

Confirmed

Platform

Low

Networking, Player, Save Data

1.21.6

Retrieved