Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-80546

Mounting and quickly dismounting vehicle does not move player to vehicle but only teleports them relatively to their position

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16 Pre-release 5
    • Minecraft 1.8.5, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.13.1, 1.14.4, 19w44a, 1.15.1, 1.15.2
    • Confirmed
    • (Unassigned)

      The bug

      Mounting a vehicle (like a minecart, a boat, a pig or a horse) and quickly dismounting it does not teleport the player to the vehicle but only dismounts them relative to their position.

      Expected behavior

      The player would be properly moved to the vehicle first and then dismounted at the position of the vehicle.

      How to reproduce

      1. Stand in front of a vehicle
      2. Mount the vehicle (default: right-click)
      3. Quickly dismount it (default: shift)

      Code analysis

      Based on 1.12 decompiled using MCP 9.40 PRE 1

      It looks like this bug can be caused by two different bugs:

      • The passenger position is not directly updated but instead by the method net.minecraft.entity.Entity.updatePassenger(Entity) one tick later (see also MC-111747).
      • The server sends a SPacketPlayerPosLook packet with the old entity position in net.minecraft.entity.player.EntityPlayerMP.startRiding(Entity, boolean).

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: