mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-20 19:33:32 +02:00
20 lines
1.4 KiB
Diff
20 lines
1.4 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Nassim Jahnke <jahnke.nassim@gmail.com>
|
||
|
Date: Fri, 10 Jun 2022 16:02:35 +0200
|
||
|
Subject: [PATCH] Remove invalid signature login stacktrace
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||
|
index 89f8690848db712f382d1a1e5b75053262d991ac..2991ae752fa8e7bf7e7aaaca9a02430e6973aea4 100644
|
||
|
--- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||
|
+++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||
|
@@ -299,7 +299,7 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener
|
||
|
try {
|
||
|
this.playerProfilePublicKey = ServerLoginPacketListenerImpl.validatePublicKey(packet, this.server.getServiceSignatureValidator(), this.server.enforceSecureProfile());
|
||
|
} catch (ServerLoginPacketListenerImpl.PublicKeyParseException loginlistener_a) {
|
||
|
- ServerLoginPacketListenerImpl.LOGGER.error(loginlistener_a.getMessage(), loginlistener_a.getCause());
|
||
|
+ //ServerLoginPacketListenerImpl.LOGGER.error(loginlistener_a.getMessage(), loginlistener_a.getCause()); // Paper - unnecessary stacktrace
|
||
|
if (!this.connection.isMemoryConnection()) {
|
||
|
this.disconnect(loginlistener_a.getComponent());
|
||
|
return;
|