diff --git a/patches/server/Prevent-teleporting-dead-entities.patch b/patches/server/Prevent-teleporting-dead-entities.patch index ec00c16755..1cc8aed01a 100644 --- a/patches/server/Prevent-teleporting-dead-entities.patch +++ b/patches/server/Prevent-teleporting-dead-entities.patch @@ -12,10 +12,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } private void internalTeleport(double d0, double d1, double d2, float f, float f1, Set set, boolean flag) { ++ // Paper start + if (player.isRemoved()) { + LOGGER.info("Attempt to teleport removed player {} restricted", player.getScoreboardName()); ++ if (server.isDebugging()) io.papermc.paper.util.TraceUtil.dumpTraceForThread("Attempt to teleport removed player"); + return; + } ++ // Paper end // CraftBukkit start if (Float.isNaN(f)) { f = 0;