mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Make debug mode print current configuration phase
This commit is contained in:
parent
1863ac217f
commit
f8a84f01e2
@ -74,6 +74,17 @@ diff --git a/src/main/java/net/minecraft/server/network/ServerConfigurationPacke
|
|||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java
|
--- a/src/main/java/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java
|
||||||
+++ b/src/main/java/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java
|
+++ b/src/main/java/net/minecraft/server/network/ServerConfigurationPacketListenerImpl.java
|
||||||
|
@@ -0,0 +0,0 @@ public class ServerConfigurationPacketListenerImpl extends ServerCommonPacketLis
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDisconnect(Component reason) {
|
||||||
|
+ // Paper start - Debugging
|
||||||
|
+ if (net.minecraft.server.MinecraftServer.getServer().isDebugging()) {
|
||||||
|
+ ServerConfigurationPacketListenerImpl.LOGGER.info("{} lost connection: {}, while in configuration phase {}", this.gameProfile, reason.getString(), currentTask != null ? currentTask.type().id() : "null");
|
||||||
|
+ } else // Paper end
|
||||||
|
ServerConfigurationPacketListenerImpl.LOGGER.info("{} lost connection: {}", this.gameProfile, reason.getString());
|
||||||
|
super.onDisconnect(reason);
|
||||||
|
}
|
||||||
@@ -0,0 +0,0 @@ public class ServerConfigurationPacketListenerImpl extends ServerCommonPacketLis
|
@@ -0,0 +0,0 @@ public class ServerConfigurationPacketListenerImpl extends ServerCommonPacketLis
|
||||||
this.connection.resumeInboundAfterProtocolChange();
|
this.connection.resumeInboundAfterProtocolChange();
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
|
Loading…
Reference in New Issue
Block a user