mirror of
https://github.com/PaperMC/Waterfall.git
synced 2025-01-08 08:57:39 +01:00
ce48007a7d
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing BungeeCord Changes: 1ef4d27d #3543: Bump io.netty:netty-bom from 4.1.97.Final to 4.1.99.Final 94a1fb51 #3535: Queue packets of Title api 78aef86a #3533: Don't put initial client in configure phase until server is ready
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 92b7609dd85a8eb3d8f300a34f8355eb5f1e1c3c 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 c3f5db1a..98b78de2 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
|
|
@@ -164,7 +164,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.42.0
|
|
|