Position riders before API teleportation
The previous teleportation logic would call Entity#positionRider for the "teleportation" of passengers in the same dimension. This prevented plugins that aggressively teleport entities on a per-tick basis from allowing players to get out of sync with their vehicles as the vanilla teleport logic simply performs a relative repositioning of the passengers to the vehicle location.
The introduced diff now repositions the passengers onto their vehicle before computing their relative offset and repositioning.
Resolves: #13239
Last updated for: e0862d52e0b414e9d8e1dab4daaff08e17d757cc.
Download the Paperclip jar for this pull request: paper-13342.zip
Maven Publication
The artifacts published by this PR:
- :package:
io.papermc.paper:dev-bundle:1.21.11-R0.1-SNAPSHOT - :package:
io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT
Repository Declaration
In order to use the artifacts published by the PR, add the following repository to your buildscript:
repositories {
maven("https://maven-prs.papermc.io/Paper/pr13342") {
name = "Maven for PR #13342" // https://github.com/PaperMC/Paper/pull/13342
mavenContent {
includeModule("io.papermc.paper", "dev-bundle")
includeModule("io.papermc.paper", "paper-api")
}
}
}