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

Minecart dismount position always above the minecart, even if there's space next to it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w09a
    • Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 18w06a, Minecraft 18w21b
    • Confirmed
    • (Unassigned)

      Expected behavior

      When dismounting from a minecart, the player or mob riding the minecart should be deposited on an adjacent block if one is available.

      Behavior that occurred

      When dismounting from a minecart, the player or mob is deposited directly above the minecart, even when other valid spaces are available. This can cause suffocation damage to the player or mob if there is a solid block two blocks above the minecart.

      How to reproduce

      1. Place any rail, then a minecart on the rail.
      2. Get in the minecart, then get out of the minecart. (When not on a rail with shift dismounting.)
      3. Place a solid block above the block where the minecart is sitting with two air block in between to see the suffocation damage.

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      It looks like the method net.minecraft.entity.EntityLivingBase.dismountEntity(Entity) now shifts down the bounding box it uses for testing block collisions by the ridden entity height.

            Unassigned Unassigned
            Elnar_Ingolmo Josiah Taylor
            Votes:
            9 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: