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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.8.5, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.13.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: