Paper
Paper copied to clipboard
Linking Nether Portals - 1.19.3
Expected behavior
Portals linked by location x,z should link to each other, not to nearby portal at different y value. Lower y value portal is taking precedence even though both pairs of portals have proper x/z.
Observed/Actual behavior
One pair of portals works properly back/forth (the one with lower y value portal in the nether). The second pair works one way, but going back through leads to 1st pair of portals.
In my example, base portal and chunk loader portal are close to each other, but at acceptable distance (see screenshot).
Steps/models to reproduce
Originally, base portal was directly on the nether roof. Base portals worked fine. Chunk loader portal from nether would work as expected. Chunk loader portal from overworld -> nether would lead to the base portal.
I raised the y value of the base portal on the nether roof by 2 to so it was the same height as the chunk loader portal. This solved the problem and both pairs of portals link properly.

Plugin and Datapack List
GravityControl OnePlayerSleep
Paper version
This server is running Paper version git-Paper-366 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: 8d7d927) You are 5 version(s) behind Download the new version at: https://papermc.io/downloads
Other
Based on a search, this seems similar to issue #6995