2021-10-01 03:27:34 +02:00
|
|
|
From 236c13d0121ef6ae5c6d7932c62c37a71f3ec1f7 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
|
2021-10-01 03:27:34 +02:00
|
|
|
index 7d66fdbda..b25cede0e 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-10-01 03:27:34 +02:00
|
|
|
@@ -128,7 +128,8 @@ public class ServerConnector extends PacketHandler
|
2021-06-09 00:27:45 +02:00
|
|
|
newp[newp.length - 2] = new LoginResult.Property( ForgeConstants.FML_LOGIN_PROFILE, "true", null );
|
|
|
|
|
|
|
|
// If we do not perform the replacement, then the IP Forwarding code in Spigot et. al. will try to split on this prematurely.
|
|
|
|
- newp[newp.length - 1] = new LoginResult.Property( ForgeConstants.EXTRA_DATA, user.getExtraDataInHandshake().replaceAll( "\0", "\1"), "" );
|
|
|
|
+ // FlameCord - Change replaceAll() to replace()
|
|
|
|
+ newp[newp.length - 1] = new LoginResult.Property( ForgeConstants.EXTRA_DATA, user.getExtraDataInHandshake().replace( "\0", "\1"), "" );
|
|
|
|
|
|
|
|
// All done.
|
|
|
|
properties = newp;
|
|
|
|
--
|
2021-10-01 03:27:34 +02:00
|
|
|
2.32.0.windows.1
|
2021-06-09 00:27:45 +02:00
|
|
|
|