Folia icon indicating copy to clipboard operation
Folia copied to clipboard

Preserve rotation on teleport command and add PlayerChangedWorldEvent for teleportAsync

Open luigiofthebakery opened this issue 2 months ago • 0 comments

When using the teleport command, rotation (pitch and yaw) was not preserved when teleporting to an entity, or in any situation where it wasn't explicitly specified in the command parameters. The first commit fixes that. The second commit adds back PlayerChangedWorldEvent to fire after teleportAsync is called, if the entity is a player and they are teleporting to a new world.

luigiofthebakery avatar Sep 21 '25 07:09 luigiofthebakery