Skip to content

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

@EXtremeExploit EXtremeExploit force-pushed the should-appear-at-spawn-flag branch from fb2cfbb to bb3c0d5 Compare April 8, 2024 13:57
@EXtremeExploit EXtremeExploit force-pushed the should-appear-at-spawn-flag branch from bb3c0d5 to c630319 Compare April 8, 2024 13:59
@sonarqubecloud
Copy link

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