From e6193a16308c4f2f0f2884449df94934786cfa70 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sun, 20 Jun 2021 15:06:37 +0100 Subject: [PATCH] Add invalid player data to misc debug dumps --- patches/server/misc-debugging-dumps.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/patches/server/misc-debugging-dumps.patch b/patches/server/misc-debugging-dumps.patch index c27cd1046d..e83b6d6c55 100644 --- a/patches/server/misc-debugging-dumps.patch +++ b/patches/server/misc-debugging-dumps.patch @@ -57,6 +57,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 // Paper end this.running = false; if (flag) { +diff --git a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java ++++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java +@@ -0,0 +0,0 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener + } + } catch (Exception exception) { + TranslatableComponent chatmessage = new TranslatableComponent("multiplayer.disconnect.invalid_player_data"); ++ // Paper start ++ if (MinecraftServer.getServer().isDebugging()) { ++ exception.printStackTrace(); ++ } ++ // Paper end + + this.connection.send(new ClientboundDisconnectPacket(chatmessage)); + this.connection.disconnect(chatmessage); diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java