2022-08-03 21:59:54 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
|
|
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
|
2022-12-08 20:06:54 +01:00
|
|
|
index 230c3629f5e6bf80422812e7684a9bb643b1a46d..f0b5acdae1cc0626339aca6b16aa26e291a661fa 100644
|
2022-08-03 21:59:54 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
2022-12-07 22:57:15 +01:00
|
|
|
@@ -1750,6 +1750,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
|
2022-08-03 21:59:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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());
|