mirror of
https://github.com/PaperMC/Waterfall.git
synced 2025-01-08 08:57:39 +01:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 89a9c3c9f0136f173f045385925357b6d9a9bc9b Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Fri, 21 Apr 2023 15:32:33 +0100
|
|
Subject: [PATCH] reduce log spam from clients registeirng too many channels
|
|
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
index ae842636..ca0e3764 100644
|
|
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
@@ -163,7 +163,17 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|
@Override
|
|
public void handle(PluginMessage pluginMessage) throws Exception
|
|
{
|
|
- this.relayMessage( pluginMessage );
|
|
+ // Waterfall start
|
|
+ try {
|
|
+ this.relayMessage(pluginMessage);
|
|
+ } catch (IllegalStateException | IllegalArgumentException ex) {
|
|
+ if (net.md_5.bungee.protocol.MinecraftDecoder.DEBUG) {
|
|
+ throw ex;
|
|
+ } else {
|
|
+ throw new QuietException(ex.getMessage());
|
|
+ }
|
|
+ }
|
|
+ // Waterfall end
|
|
}
|
|
|
|
@Override
|
|
--
|
|
2.40.1.windows.1
|
|
|