From 3a8916d9a3e38e95cb0a77dbe079bafe9c3d8c54 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sat, 20 Jun 2020 18:22:01 +0100 Subject: [PATCH] Remove version from brand info (Fixes #517) --- .../0056-Remove-version-from-brand-info.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 BungeeCord-Patches/0056-Remove-version-from-brand-info.patch diff --git a/BungeeCord-Patches/0056-Remove-version-from-brand-info.patch b/BungeeCord-Patches/0056-Remove-version-from-brand-info.patch new file mode 100644 index 0000000..cb6f982 --- /dev/null +++ b/BungeeCord-Patches/0056-Remove-version-from-brand-info.patch @@ -0,0 +1,22 @@ +From 22dcd72ee1ac6342ce25148a5d0bc4822dba3b56 Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Sat, 20 Jun 2020 18:21:17 +0100 +Subject: [PATCH] Remove version from brand info + + +diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +index d7d0fafc..daac8604 100644 +--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java ++++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +@@ -281,7 +281,7 @@ public class DownstreamBridge extends PacketHandler + Preconditions.checkState( !serverBrand.contains( bungee.getName() ), "Cannot connect proxy to itself!" ); + + brand = ByteBufAllocator.DEFAULT.heapBuffer(); +- DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")" + " <- " + serverBrand, brand ); ++ DefinedPacket.writeString( bungee.getName() + " <- " + serverBrand, brand ); // Waterfall + pluginMessage.setData( brand ); + brand.release(); + // changes in the packet are ignored so we need to send it manually +-- +2.27.0 +