Riding an entity into portals may cause the game softlock.
Relates to MC-272322.
Steps to reproduce:
1./gamerule entitiesWithPassengersCanUsePortals true
2.Go into the nether.
3./tp 100000 ~ ~
4.Summon and tame a horse and ride it, then build a portal here.
5.Go back from the nether to overworld with it through the portal.
Observed result:
The game will softlock, you will fall into the void (client) but don't take void damage, the server is frozen, and you can't save and quit normally.
Expected result:
You will be teleported to overworld normally.
Notes:
This affects both nether portal and end portal, from overworld to nether/end or back to overworld from nether/end.
Linked issues
relates to 1
Attachments
Comments 3
More tests:
When you riding an entity and teleport from nether to overworld, you will be teleport correctly, but the horse will teleport to the same place in the nether, if the distance from your place in overworld and the horse is close, you will be teleport to the horse (That is MC-272322).
If the distance from your place in overworld and the horse is far(the horse is in unloaded chunk), it will cause a huge desync from client and server, and your game will be softlock, you can't break blocks in survival, and even if you fall into the void, you won't take any damage. The server maybe freeze in this situation. This is how this bug happens. When you quit and relog, you will be teleported to the horse.
I can confirm some of this. The game seems to softlock when entering a nether portal on horseback (step 4). I could save the game, and when I loaded the game again I was back in the Overworld and there was no Nether portal.
Edited to add: On reload, the horse was also in the Overworld and the player was riding it. Player and horse ended up in an ocean. I used seed 1 for the world.