Multiverse-Core: [1.16.4] Nether portals doesn't see the corresponding portal in overworld
Information
-
Server version: This server is running CraftBukkit version git-Spigot-628435a-768d7fc (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
-
Full output of
/mv version -p: https://pastebin.com/zH6kEjFd -
Server log: https://gist.github.com/TEXHIK/5317bf2f9f4aadd60785c5e97777fdff
Details
Description
Nether portals in nether spawns new portal in overworld instead of using existing one, which was used to enter the nether.
Steps to reproduce
- Make a nether portal anywhere in the world. (Original-Overworld)
- Go to the nether (it will create a portal, Generated-Nether)
- Go back to overworld
- Destroy Original-Overworld portal and build a new one in (Shifted-Overworled) some distance, but within vanilla search radius (1024 for overworld)
- Go through Shifted-Overworled portal. You will find yourself in Generated-Nether portal.
- Step out and back into Generated-Nether portal
- Now the problem is:
Expected behavior
You’ll spawn in Shifted-Overworled
Feal behavior The game creates new portal in overworld instead
Screenshots
A portal in overworld, linked to portal in nether

A nether portal, to wich first portal is linked

A new portal, generated when returning from th nether

About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 38 (17 by maintainers)
Paper Build 468 includes the fix.
Sorry this took a while to get fixed.
I found the problem. The problem is that by default, any nether portal that is not in the main nether world will have the main nether world as its destination. So the problem is that since the server originally thinks the portal is going to the main nether world, it reduces the search radius to 16 (128 / 8), but it does not take into account that the world may change after the event propagates. I have an idea which I will propose to Spigot on how to fix this.
edit: Here it is. I tested this change and it has indeed solved the problem, https://hub.spigotmc.org/jira/browse/SPIGOT-6347.
I am providing a custom Paper build here with one added patch. The added patch simply makes the server send nether portals to the overworld when you are in any nether world. The previous behaviour is to only send a nether portal to the overworld if you are in the main nether world. This build will fix this issue and it’s up to date with Paper Build 467.
It’s too large to upload here or to upload to Discord, so I’ve uploaded it to Google Drive(fixed in CraftBukkit).Yes, it is actually what I was writing about. The only thing MV does - it rescale coordinates, but finding the portal isn’t changed, it’s already done in spigot event. So this issue shoul be forwarded to spigot.