2022-06-07 21:48:14 +02:00
|
|
|
From dca52858df4acbd78c9128f6e40e447b86824150 Mon Sep 17 00:00:00 2001
|
2021-06-09 00:27:45 +02:00
|
|
|
From: foss-mc <69294560+foss-mc@users.noreply.github.com>
|
|
|
|
Date: Wed, 16 Dec 2020 18:01:37 +0800
|
|
|
|
Subject: [PATCH] Change replaceAll() to replace()
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
|
2022-06-07 21:48:14 +02:00
|
|
|
index d672c8ef..9067b806 100644
|
2021-06-09 00:27:45 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
|
2021-11-30 15:50:10 +01:00
|
|
|
@@ -129,7 +129,8 @@ public class ServerConnector extends PacketHandler
|
2022-06-07 21:48:14 +02:00
|
|
|
newp[newp.length - 2] = new net.md_5.bungee.protocol.Property( ForgeConstants.FML_LOGIN_PROFILE, "true", null );
|
2021-06-09 00:27:45 +02:00
|
|
|
|
|
|
|
// If we do not perform the replacement, then the IP Forwarding code in Spigot et. al. will try to split on this prematurely.
|
2022-06-07 21:48:14 +02:00
|
|
|
- newp[newp.length - 1] = new net.md_5.bungee.protocol.Property( ForgeConstants.EXTRA_DATA, user.getExtraDataInHandshake().replaceAll( "\0", "\1"), "" );
|
2021-06-09 00:27:45 +02:00
|
|
|
+ // FlameCord - Change replaceAll() to replace()
|
2022-06-07 21:48:14 +02:00
|
|
|
+ newp[newp.length - 1] = new net.md_5.bungee.protocol.Property( ForgeConstants.EXTRA_DATA, user.getExtraDataInHandshake().replace( "\0", "\1"), "" );
|
2021-06-09 00:27:45 +02:00
|
|
|
|
|
|
|
// All done.
|
|
|
|
properties = newp;
|
|
|
|
--
|
2022-06-07 21:48:14 +02:00
|
|
|
2.36.1.windows.1
|
2021-06-09 00:27:45 +02:00
|
|
|
|