mojira.dev
MC-90605

Constant teleporting between Nether and Overworld

On a SMP server, I am stuck in a pair of connected Nether portals. I constantly get teleported between the two dimensions, snapping back to the position of the portals even after moving. I also receive suffocation damage once per teleportation, and the change in the hunger bar and stack size after eating food only becomes visible after a dozen teleportations or so.

This happened while trying to go from the Nether to the Overworld; going from the Overworld to the Nether seems to work fine. After logging out in the Nether and asking another player (who is apparently not affected) to deactivate the portals, I tried using a different pair of portals, with the same result. I eventually died of the suffocation damage in the Overworld, and after respawning went back to the Nether to collect the part of my inventory that had fallen into the portal. After collecting the items I tried to go back to the Overworld, which triggered the bug again.

The affected world can be downloaded at http://api.wurstmineberg.de/v2/world/wurstmineberg/backup/latest.tar.gz (the portals in question are those located directly at spawn, marked with yellow and green stained clay).

Steps to reproduce:

  1. Set up a SMP server

  2. Give yourself the materials to build and light a Nether portal

  3. Enter the Nether

  4. Exit the Nether

May be dependent on network lag.

Possible cause:

  1. The client spawns in the new dimension, but at the coordinates of the entrance portal (either MC-89928 or closely related). If there happens to be a solid block at these coordinates, the player will receive suffocation damage. If the coordinates are in a lava lake, the player will catch fire.

  2. The position gets corrected to the coordinates of the exit portal, making the server think they just entered this portal.

  3. If they stand in the portal for the usual 4 seconds, they get teleported back. Loading the exit dimension can cause enough lag to make it impossible to exit the portal fast enough.

Workaround:
Log out and back in while you are in the correct dimension. Note that when doing this you can occasionally find yourself at incorrect coordinates.

Linked issues

MC-90629 Nether Portals can TP immediatly Resolved MC-90811 Nether portals not always allowing you to step out, sending you back instead Resolved MC-90816 Portals again Resolved MC-91028 No Portal Cooldown in Creative Resolved MC-91170 World doesn't load fast enough to leave nether portals - multiplayer only. Resolved

Attachments

Comments 91

[Mod] redstonehelper

Does this also happen in SSP?

Ville Ollikainen

Can't reproduce this on Singleplayer, neither on Survival or Creative, just on Creative multiplayer so far.

Fenhl (Max Dominik Weber)

I have not been able to reproduce in Singleplayer either.

Fenhl (Max Dominik Weber)

I tested it with a different account to try and see if it was somehow account-related, but this time going from the Overworld to the Nether triggered the teleport loop. I changed my gamemode to Spectator to break out of the teleport loop and found myself in the Nether, but at the coordinates of the Overworld portal. Which probably means that this bug is related to MC-89928.

Does this happen in a fresh 15w42a world ?

81 more comments

Happ, I slightly disagree with you saying these bugs are at their core separate problems. In reality it's cause and effect.

As I said in my previous comment, the reason that this bug was even a bug at all is because of MC-89928. The reason I say this is that when you get teleported into a portal frame when switching dimensions, the game does not let you teleport again until you've left the block space of a portal block animation, then move back in. Part 3 below is where this functionality is being broken by MC-89928. Follow my logic here:

1-If you go through a portal, you appear where you're supposed to appear (Overworld Coordinates /8).
2-The game (anti-cheat, probably) thinks you've moved too fast, and teleports you back to the coordinates you were at previously in the overworld. The key to this is that this action REMOVES you from the portal frame.
3-Probably due to another fix implemented in 15w42a, you are then teleported BACK to the portal. Now the game thinks that you left and reentered the portal.
4-If you have a slow connection or slow computer, due to loading and then reloading an area (or in case of first use, generating new chunks), you may not be able to move out of the portal in time. Thus you teleport back THROUGH the portal.
5-At this point rinse and repeat.

As mentioned before, step 3, where the game removes you from the portal and puts you back into it is what caused this bug (MC-90605), because if you were able to teleport the first time without the game moving your coordinates, you wouldn't be ABLE to go back through the portal to begin with. Any fixes they applied because of this bug is fixing the results of another bug, which is rather ineffective, because all of this work on this bug will be negated by fixing MC-89928.

Thus this bug in and of itself was the wrong thing to focus on, in hindsight. Though the extra code will ultimately be a nice safeguard in case of other issues in the future.

The only thing they could have done to fix this bug without fixing MC-89928 is to put a cooldown timer on being able to activate a portal. I'll post the results of testing my hypothesis and my actual 16w06a findings probably by the morning, tomorrow afternoon at latest.

SpiderRobotMan

I can't agree with that James, as someone who has run a server with this bug for a few snapshots and experienced all the cases of this. I don't believe they are caused by eachother. I managed to fix the portal loop using commands that would detect a change in dimension and move you away from the portal, after you're free from the portal it would still teleport you to your last coordinates in the dimension you're currently in (not everytime). It would NOT bring you back into the portal and teleport again, leading me to believe they are unrelated.

Anyway, it's not fixed per MC-96892

After testing, I can confirm that people are no longer looping on my server as often. I have yet to see someone actually loop (it seems the portal cooldown has been increased). Also, the nether seems to be loading faster. However, I can also confirm that MC-89928 is still a problem as per my previous post. You can see people pop in at the appropriate overworld coordinates in the nether. I'll notate that on the other post.

Spider, in response, I'm wondering if server lag is also enhancing the looping issues. If there is a case where you are teleporting, and the command block is lagged with the game code, the game code would probably take precedence. The client may think you're away from the portal, but the server itself is probably rubberbanding back to the portal. Does this tend to happen when there is block lag on the server? Or has it happened after a server restart?

Spider Robot Man, could you please include the commands, I really need it

 

Fenhl (Max Dominik Weber)

michael

Community Consensus

Minecraft 15w42a, Minecraft 15w43b, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w44b, ..., Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b

Minecraft 15w43a, Minecraft 16w06a

Retrieved