-
Bug
-
Resolution: Fixed
-
Minecraft 1.8.1-pre3, Minecraft 1.8.1-pre4, Minecraft 1.8.1-pre5, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.2-pre2, Minecraft 1.8.2-pre3, Minecraft 1.8.2-pre4, Minecraft 1.8.2-pre5, Minecraft 1.8.2-pre6, Minecraft 1.8.2-pre7, Minecraft 1.8.2, Minecraft 1.8.3
-
None
-
Confirmed
If you walk into a nether portal, you don't spawn at the right position in the nether and the other way around. You always spawn some blocks beside the portal and get suffocated if there is a wall.
To recreate the bug, i created a fresh world, built a nether portal and go through it. Then i got stuck in the netherrack some blocks under and beside the portal. But the portal was created just fine. When i wanted to go back to the overworld, i spawned 2 blocks in front of the portal in the overworld.
Adapted from anomie x's comment:
On 1.8.3, the cause of this issue is located in the class named "adv", which handles portal travel:
In the code for placing the player there's a bit like this, which seems to be for adjusting the X/Z position from the corner portal-block of the destination portal to more closely match where the entity entered the source portal. var31 is X, var33 is Z.
if(var16.b().k() == cr.a.a) { var31 += (double)var16.b().g(); // !!! var33 = var18 + (1.0D - var1.aG().a) * (double)var16.d() * (double)var16.b().e().c().a(); } else { var31 = var18 + (1.0D - var1.aG().a) * (double)var16.d() * (double)var16.b().e().c().a(); var33 += (double)var16.b().i(); // !!! }
The lines I've commented with "!!!" are the problem, they move the entity 1 block in the "facing" direction of the portal without bothering to check for ground underneath, blocks in the way, or anything else. Modding the class to remove those two lines restores the expected behavior of spawning within the destination portal itself.
- is duplicated by
-
MC-73526 Nether portal teleporting
- Resolved
-
MC-73544 Incorrect Nether Portal behaviour
- Resolved
-
MC-73664 Not spawning in portal
- Resolved
-
MC-73672 Nether Portals not linking correctly
- Resolved
-
MC-73711 Emerging from Nether Portal Offset
- Resolved
-
MC-73742 Bug teleport through the nether portal
- Resolved
-
MC-73810 Incorrect placement upon leaving a nether portal
- Resolved
-
MC-74057 Sudden Death ! ! ! What Happened ? ? ?
- Resolved
-
MC-74081 Nether portals places you in the wrong spot when going through.
- Resolved
-
MC-74093 Portals do not deposit the player in the correct location.
- Resolved
-
MC-74161 Going in the Nether portal
- Resolved
-
MC-74278 Portal Teleportation Glitch
- Resolved
-
MC-74288 Nether Portals Teleport Players To Wrong Positions
- Resolved
-
MC-74453 Portal teleports you 2-3 blocks to the left of the portal
- Resolved
-
MC-74607 A bug when you go through nether portals it spawns you in the side. This can be bad because you can get stuck in a wall and suffocate or, like what happened to myself, you can fall off the edge when going to the nether.
- Resolved
-
MC-74761 Nether Portal places you outside the portal
- Resolved
-
MC-75107 Nether Portal Glitch
- Resolved
-
MC-75485 When I exit a nether portal, you end up outside the frame of its counterpart.
- Resolved
-
MC-77425 Portals destination is offset in 1.8.1 update
- Resolved
-
MC-78611 Players spawn 1 Block Away From Nether Portal
- Resolved
- relates to
-
MC-76641 Nether Portal spawns you above lava-unavoidable death
- Resolved
-
MC-3 Player facing changes when passing through nether portals in certain cases
- Resolved
-
MC-793 Damage when teleported to Nether
- Resolved