Mojira Archive
MC-111726

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

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.

Fixed

Josiah Taylor

2016-12-21, 07:40 PM

2020-04-13, 01:43 PM

2020-02-28, 02:26 PM

9

13

Confirmed

(Unassigned)

dismount, minecart

Minecraft 1.11.2 - Minecraft 18w21bMinecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 18w06a, Minecraft 18w21b

20w09a