mojira.dev
MC-193310

Nether/Overworld Portal Synchronization Broken

Between 1.15.2 and 1.16.1, portal creation/synchronization broke.

 

When first exiting the nether, a new portal will be generated if one does not exist in that area.
When returning to the nether, the correct portal will be located and used.
When re-using that same portal, it appears to (usually [1]) bring you back to the same portal.

If the overworld portal is moved just 2-3 blocks, the bug becomes apparent;
After moving the portal a few blocks and going to the nether, all is still fine.
When returning to the overworld, the player is dropped off at the original portal location with no portal being generated.
The player can then use their overworld portal again to get correctly to the nether.
Every return to the overworld will result in being returned to the phantom portal.

[1] - In some cases, a player will seem to be randomly sent to one of two phantom portal locations.

 

This has been reliably reproduced on MCv1.16.1 in multiple chunks, including chunks that are part of regions which were deleted and re-generated.

Linked issues

Comments 27

regions which were deleted and re-generated.

Manually editing world files like that is not supported and can cause unexpected behaviour.

I'm also experiencing this problem after updating from 1.15.2 to 1.16.1.

Using the same seed on a fresh 1.16.1 map and the same portal location, I could not reproduce this in a local or server game.

I have also seen one location where the player was randomly dropped between one of two phantom portal locations. The two locations did not change, but which one we are sent to does.

 

One user on IRC also experiencing this issue suggested there may be "something hinky happens with the nbt at some point."

Manually editing world files like that is not supported and can cause unexpected behaviour.

Perhaps, but it's a very well-documented and trivial process.

  1. Stick coordinates into https://dinnerbone.com/minecraft/tools/coordinates/

  2. Turn the server off

  3. Delete the relevant file

  4. Turn the server on

I don't know what sort of unexpected behavior you would expect to see from that.

Why was this closed without any resolution?

The manual editing of a world save is not supported, and can cause issues like this.

17 more comments

I'm unable to reproduce the issue, if anyone has reproduction steps or a world on which this happens which has not been edited please comment on the ticket.

I have managed to figure this out after tinkering with our world for a few weeks on and off.  It is not a game bug, but rather a filesystem data corruption issue, although it would be nice if there was some kind of server command / utility to fix the problem.

The issue (for us, at least) is that at some point in the past (during 1.14, actually, the only reason we found it in 1.16 is we were moving a lot of portals around) a few poi files got out of sync with their region files (probably actually a bunch due to an L2 arc panic, but the nether portal ones manifest in an obvious way to users), such that nether_portal locations in the poi existed, but the portals weren't actually there in the region.  Once that happens, there's no way to get rid of those portal locations in the POI file from the game, because making a new portal even at the same location just makes new entries, and deletes those entries when you remove it, but you're still left with the stale ones (and they get used when you use a portal, and don't generate a portal when you come through on the other side since it thinks one is already there, thus creating this "phantom portal" experience).

 

I managed to fix one up by editing the POI mca with NBTExplorer, although I don't claim to understand enough about the format of that file to be sure I didn't create new problems (I just deleted the chunk branches entirely, rather than trying to edit their values).  Are these files safe to delete and just have the game regenerate them (which would obviously be the best solution right now from a server admin point of view)?

 

EDIT: Just to be clear, the files themselves are not corrupt individually, they're just in a state where there is a logical de-sync due to one of them being written and one of them not at some point in the past.

If this still happens to anyone in 1.20.6 or later, please provide a world download and/or reliable steps to reproduce this problem.

i tried moving the portal a few times and would be located back to the original portal the first few times. But once in the nether for a longer period of time the portal would not work upon return. It would relocate me to a random cave once again... every time it does this the a new portal is generated. 

I just downloaded MC on my new laptop and started a new world with 0 mods. 

Mike

(Unassigned)

Community Consensus

Platform

Important

Save Data

1.16.1

Retrieved