Mojira Archive
MC-128886

You leave a minecart/boat if you and the minecart get teleported

The bug

If I'm riding a minecart and use the command

/teleport @e[type=minecart,limit=1,sort=nearest] ~ ~5 ~

me and the minecart are going to be teleported 5 blocks upwards and I keep riding the minecart(as aspected). But if I'm riding a minecart and use the command

/teleport @e[distance=..5] ~ ~5 ~

I'll leave the vehicle and me and the minecart are going to be teleported 5 blocks up.