aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/1012-Fix-CraftBukkit-drag-system.patch
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2024-10-31 17:25:52 +0100
committerGitHub <[email protected]>2024-10-31 17:25:52 +0100
commitad9c58e1035333a63aea416325d2ec988fdb9b36 (patch)
tree449bf4e16a4b8765c7d83e47935289a121bde692 /patches/server/1012-Fix-CraftBukkit-drag-system.patch
parent147b7961fea0a33dde0cc6041bea578a5e25e7ee (diff)
downloadPaper-ad9c58e1035333a63aea416325d2ec988fdb9b36.tar.gz
Paper-ad9c58e1035333a63aea416325d2ec988fdb9b36.zip
Only expose velocity relative tp flags to API (#11532)dev/1.21.2
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.
Diffstat (limited to 'patches/server/1012-Fix-CraftBukkit-drag-system.patch')
-rw-r--r--patches/server/1012-Fix-CraftBukkit-drag-system.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/1012-Fix-CraftBukkit-drag-system.patch b/patches/server/1012-Fix-CraftBukkit-drag-system.patch
index afd7345911..29c50814ac 100644
--- a/patches/server/1012-Fix-CraftBukkit-drag-system.patch
+++ b/patches/server/1012-Fix-CraftBukkit-drag-system.patch
@@ -10,10 +10,10 @@ public net.minecraft.world.inventory.AbstractContainerMenu quickcraftType
public net.minecraft.world.inventory.AbstractContainerMenu resetQuickCraft()V
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
-index 293f83f5513d3ab6492f93834229903570009fdb..654531ada32d3adacca71546480abeebfdad40d3 100644
+index bb3d444f7bf2b20a557cd39997f9943c90763432..65ee382684fe2d8dec621ca709880f7349208eae 100644
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
-@@ -3080,6 +3080,25 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
+@@ -3081,6 +3081,25 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
}
break;
case QUICK_CRAFT: