Fix RCON not sending newlines in output for multiline. Fixes https://bugs.mojang.com/browse/MC-7569, a very old bug that is really annoying if you use RCON.

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2020-10-11 21:48:38 -04:00
parent bed38d4253
commit 9cfe741cea
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/net/minecraft/network/rcon/RConConsoleSource.java
+++ b/net/minecraft/network/rcon/RConConsoleSource.java
@@ -34,7 +34,7 @@
}
public void func_145747_a(ITextComponent p_145747_1_, UUID p_145747_2_) {
- this.field_70009_b.append(p_145747_1_.getString());
+ this.field_70009_b.append(p_145747_1_.getString()).append("\n"); // FIX MC-7569 - RCON has no newlines in multiline output
}
public boolean func_195039_a() {