Multiverse-NetherPortals
Multiverse-NetherPortals copied to clipboard
Make entities appear at world spawn when they go trough exit end portal
Fixes https://github.com/Multiverse/Multiverse-Core/issues/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