Paper/patches
Bjarne Koll ad9c58e103
Only expose velocity relative tp flags to API (#11532)
Since 1.21.2, vanilla split relative teleportation flags into position
and delta/velocity flags into separate enum entries.
This highlighted a design flaw in the paper api addition for teleport
flags, which just simply mirrored internals while also only being able
to apply the delta/velocity part of a flag, given the teleport target is
always absolute in the API.

This patch proposes to simply no longer expose the non-velocity related
flags to the API, instead marking the entire Relative enum as being
purely velocity related, as non-velocity related flags are not useful to
callers. This was done over simply exposing all internal flags, as
another vanilla change to the internal enum would result in the same
breakage.

The newly proposed API *only* promises that the passed flags prevent the
loss of velocity in the specific axis/context, which should be
independent enough of vanillas specific implementation of this feature.
2024-10-31 17:25:52 +01:00
..
api Only expose velocity relative tp flags to API (#11532) 2024-10-31 17:25:52 +01:00
removed/1.20.5 Allow using old ender pearl behavior & apply ender pearl exploit patch (#11524) 2024-10-30 18:09:05 +01:00
server Only expose velocity relative tp flags to API (#11532) 2024-10-31 17:25:52 +01:00
unapplied/server Another one 2024-10-27 12:02:26 +01:00