-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: The End Exit portal does not teleport to overworld spawn #3139
Comments
Now that the issue was moved to MV-NP: Adding the NetherPortals plugin yields the same result. |
After debugging for a bit, I could see that the event in the
instead of |
Oh, is this occurring without MVNP? I'll move it back |
Yes, this occurs with just Multiverse-Core aswell. |
I'm starting to believe this is an issue on my end, as I had some more time for testing, and went back as to MC 1.16 and MV 4.1.0 and this still happened for me (on freshly generated worlds), and I don't believe this is an issue for this long. I'd love to know if someone can reproduce this using my steps. |
So, I stumbled upon this issue: PaperMC/Paper#8469 and quickly hacked this together as a workaround, which works fine for me: @EventHandler(priority = EventPriority.HIGHEST)
public void entityPortalEnter(EntityPortalEnterEvent event) {
var world = event.getLocation().getWorld();
var isEnd = world != null && world.getEnvironment() == World.Environment.THE_END;
var isEndPortal = event.getLocation().getBlock().getType() == Material.END_PORTAL;
var entity = event.getEntity();
if (isEnd && isEndPortal && entity instanceof Player) {
var overworldName = world.getName().replace("_the_end", "");
var overworld = worldManager.getMVWorld(overworldName);
if (overworld != null) {
Logging.finer("Teleporting player from end portal to overworld spawn");
plugin.getServer().getScheduler().scheduleSyncDelayedTask(
plugin, () -> entity.teleport(overworld.getSpawnLocation()), 1L
);
}
}
} |
See #2160 The solution is to set respawnworld as follows: |
Oh wow i should have seen that |
Works perfectly! |
/mv version -p
outputhttps://mclo.gs/89FYe9C
Server logs
https://mclo.gs/CcfmiTg
Server Version
Bug Description
After defeating the Ender Dragon the Exit Portal is supposed to take you to the spawn of the overworld. Using Mutliverse, it takes me to the 0,0 coordinate of The End. Removing the plugin and restarting the server fixes the issue.
Steps to reproduce
Agreements
The text was updated successfully, but these errors were encountered: