From d1d02c92378a7ee866076bbeabdb933d040da639 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Wed, 3 Aug 2022 12:59:54 -0700 Subject: [PATCH] Add async catcher to PlayerConnection internalTeleport --- ...er-to-PlayerConnection-internalTelepo.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/server/Add-async-catcher-to-PlayerConnection-internalTelepo.patch diff --git a/patches/server/Add-async-catcher-to-PlayerConnection-internalTelepo.patch b/patches/server/Add-async-catcher-to-PlayerConnection-internalTelepo.patch new file mode 100644 index 0000000000..08c5aa2941 --- /dev/null +++ b/patches/server/Add-async-catcher-to-PlayerConnection-internalTelepo.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Spottedleaf +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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java ++++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +@@ -0,0 +0,0 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic + } + + public void internalTeleport(double d0, double d1, double d2, float f, float f1, Set set, boolean flag) { ++ org.spigotmc.AsyncCatcher.catchOp("teleport"); // Paper + // Paper start + if (player.isRemoved()) { + LOGGER.info("Attempt to teleport removed player {} restricted", player.getScoreboardName());