mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-12-11 19:37:15 +01:00
be3a798a36
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: f5157f12 #3438: Fix possible race condition in duplicate player check df20effa #3557: Replace Guava Charsets with Java StandardCharsets
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 7c72b4ab1fd8611e97307dfac87f275187253a45 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 a9358a51..5e74d0e2 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
|
|
@@ -162,7 +162,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.1
|
|
|