Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Player#teleportAsync with RETAIN_VEHICLE does not work

Open Boy0000 opened this issue 1 year ago • 0 comments

Expected behavior

When teleporting a player with RETAIN_VEHICLE it should teleport the player with the vehicle

Observed/Actual behavior

When teleporting the player, it desyncs and does not teleport player or Minecart As clip shows when then you dismount the vehicle, it moves the player to the given location, but vehicle is left behind On dismount it also calls the PlayerTeleportEvent again as shown by console log Removing the RETAIN_VEHICLE flag correctly teleports player, but leaves vehicle behind

https://github.com/user-attachments/assets/6785722a-e849-479a-b78e-a4e9f9dbed58

Steps/models to reproduce

  1. Listen to VehicleMoveEvent
  2. Filter passengers to players and teleport to XYZ with RETAIN_VEHICLE flag

Plugin and Datapack List

[11:10:28 INFO]: Server Plugins (1):
[11:10:28 INFO]: Bukkit Plugins:
[11:10:28 INFO]:  - TeleportAsyncTest

Paper version

[11:10:17 INFO]: Checking version, please wait...
[11:10:17 INFO]: This server is running Paper version 1.21.1-123-master@aebbdc9 (2024-10-16T14:15:18Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-DEV-959e632 (MC: 1.21.1)

Other

Worldheight is extended to 512 via a datapack, hence the -480 on teleport-location

No response

Boy0000 avatar Oct 18 '24 09:10 Boy0000