Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Position riders before API teleportation

Open lynxplay opened this issue 1 month ago • 1 comments

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

lynxplay avatar Nov 23 '25 17:11 lynxplay

Last updated for: e0862d52e0b414e9d8e1dab4daaff08e17d757cc.

Download the Paperclip jar for this pull request: paper-13342.zip

Maven Publication

The artifacts published by this PR:

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")
        }
    }
}