-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated pre-hard-fork patch 0008-do-not-suppress-protocol-errors.patch
- Loading branch information
1 parent
ae56afd
commit 0857d11
Showing
2 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
cheetah-server/minecraft-patches/sources/net/minecraft/network/Connection.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/network/Connection.java | ||
+++ b/net/minecraft/network/Connection.java | ||
@@ -210,7 +_,7 @@ | ||
|
||
if (player != null) player.quitReason = org.bukkit.event.player.PlayerQuitEvent.QuitReason.ERRONEOUS_STATE; // Paper - Add API for quit reason | ||
if (flag) { | ||
- LOGGER.debug("Failed to sent packet", exception); | ||
+ Connection.LOGGER.warn("Failed to send to " + player.getName() + " packet", exception); // Cheetah - change log level to warn | ||
boolean doesDisconnectExist = this.packetListener.protocol() != ConnectionProtocol.STATUS && this.packetListener.protocol() != ConnectionProtocol.HANDSHAKING; // Paper | ||
if (this.getSending() == PacketFlow.CLIENTBOUND && doesDisconnectExist) { // Paper | ||
Packet<?> packet = (Packet<?>)(this.sendLoginDisconnect |
This file was deleted.
Oops, something went wrong.