diff options
Diffstat (limited to 'patches/server/0898-Add-async-catcher-to-PlayerConnection-internalTelepo.patch')
-rw-r--r-- | patches/server/0898-Add-async-catcher-to-PlayerConnection-internalTelepo.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0898-Add-async-catcher-to-PlayerConnection-internalTelepo.patch b/patches/server/0898-Add-async-catcher-to-PlayerConnection-internalTelepo.patch new file mode 100644 index 0000000000..05e9d349b8 --- /dev/null +++ b/patches/server/0898-Add-async-catcher-to-PlayerConnection-internalTelepo.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Spottedleaf <[email protected]> +Date: Wed, 3 Aug 2022 12:57:36 -0700 +Subject: [PATCH] Add async catcher to PlayerConnection internalTeleport + + +diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +index 1ff25ce408aba3620455f74e1535b5862b3bbdf9..9eb921fec32afa360f3a402e978411fcf3ec618c 100644 +--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java ++++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +@@ -1757,6 +1757,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic + } + + public void internalTeleport(double d0, double d1, double d2, float f, float f1, Set<ClientboundPlayerPositionPacket.RelativeArgument> set, boolean flag) { ++ org.spigotmc.AsyncCatcher.catchOp("teleport"); // Paper + // Paper start + if (player.isRemoved()) { + LOGGER.info("Attempt to teleport removed player {} restricted", player.getScoreboardName()); |