Using the "/ride" command on invalid entities teleports players to their position
The Bug:
Using the "/ride" command on invalid entities teleports players to their position.
Steps to Reproduce:
- Summon a marker by using the command provided below.
/summon minecraft:marker ~ ~ ~
- Travel around ten blocks away from the marker.
- Attempt to ride the marker using the command provided below.
/ride @s mount @e[type=marker,limit=1,sort=nearest]
- Take note of how you don't ride the marker but are teleported to its position.
Observed Behavior:
The player is teleported to the entity's position.
Expected Behavior:
The player would not be teleported to the entity's position.