Retain passengers flag is ignored when teleporting an entity with passengers to a location with a null world
lucyydotp opened this issue · 0 comments
lucyydotp commented
Expected behavior
When an entity with passengers is teleported to a location with a null world, it is teleported successfully, retaining its passengers. This is consistent with the behaviour of teleporting an entity with no passengers to a location with a null world.
Observed/Actual behavior
The teleport fails.
Steps/models to reproduce
val vehicle = player.world.spawn(player.location, ItemDisplay::class.java) {
it.addPassenger(player)
}
// at some point later
vehicle.teleport(Location(null, 0.0, 0.0, 0.0, 0.0, 0.0), TeleportFlag.EntityState.RETAIN_PASSENGERS)
Plugin and Datapack List
None other than the minimum to reproduce with the above code
Paper version
This server is running Paper version 1.20.6-97-master@377733d (2024-05-24T18:03:46Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)
Other
No response