Skip to content

Commit

Permalink
migrated pre-hard-fork patch 0008-do-not-suppress-protocol-errors.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
TrainmasterHD committed Jan 5, 2025
1 parent ae56afd commit 0857d11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
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
19 changes: 0 additions & 19 deletions patches/server/0008-do-not-suppress-protocol-errors.patch

This file was deleted.

0 comments on commit 0857d11

Please sign in to comment.