3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00
Paper/CraftBukkit-Patches/0068-Remove-OS-X-Special-Chars-from-Signs.patch

22 Zeilen
934 B
Diff

2013-12-22 00:05:27 +01:00
From 3bf7534db49e538787ec84cc0fabd79bd691a2c3 Mon Sep 17 00:00:00 2001
2013-12-08 06:52:54 +01:00
From: md_5 <md_5@live.com.au>
Date: Sun, 8 Dec 2013 16:52:42 +1100
Subject: [PATCH] Remove OS X Special Chars from Signs
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
2013-12-21 09:13:39 +01:00
index e88adfa..1903362 100644
2013-12-08 06:52:54 +01:00
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
2013-12-21 09:13:39 +01:00
@@ -1562,6 +1562,7 @@ public class PlayerConnection implements PacketPlayInListener {
2013-12-08 06:52:54 +01:00
for (j = 0; j < 4; ++j) {
boolean flag = true;
+ packetplayinupdatesign.f()[j] = packetplayinupdatesign.f()[j].replaceAll( "\uF700", "" ).replaceAll( "\uF701", "" ); // Spigot - Mac OSX sends weird chars
if (packetplayinupdatesign.f()[j].length() > 15) {
flag = false;
--
1.8.3.2