Skip to content
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

Make entities appear at world spawn when they go trough exit end portal #265

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EXtremeExploit
Copy link

Fixes Multiverse/Multiverse-Core#2707.
Currently the getLocation on the entity listener was sending the entities on the same location from which the entity crossed the portal from with taking the scaling into account, this is exactly the same behavior it is used for nether portals, however this is not the correct behavior when going from the end to the overworld, since the end portal is mostly always at 0,0 the items will always spawn close to 0,0 in the overworld.

The mean to fix this is by adding a special flag for when the portal is an end portal and the from world is the end, If this flag is true it will teleport specifically to the world's target spawn point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-player entities teleport incorrectly with End portal
3 participants