13
0
geforkt von Mirrors/Paper

Add debug stack for removed player teleporation check

Dieser Commit ist enthalten in:
Shane Freeder 2021-12-29 15:05:23 +00:00
Ursprung 7a47d06a49
Commit 52fbecf5f4

Datei anzeigen

@ -12,10 +12,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
private void internalTeleport(double d0, double d1, double d2, float f, float f1, Set<ClientboundPlayerPositionPacket.RelativeArgument> 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;