testserver/CraftBukkit-Patches/0067-Remove-OS-X-Special-Ch...

22 lines
934 B
Diff
Raw Normal View History

2014-02-01 07:12:22 +00:00
From 48e13501d3e0d30e4bcc0a875894254e87f5029b Mon Sep 17 00:00:00 2001
2013-12-08 05:52:54 +00: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
2014-02-01 07:12:22 +00:00
index 733b9d3..a462492 100644
2013-12-08 05:52:54 +00:00
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
2014-02-01 07:12:22 +00:00
@@ -1552,6 +1552,7 @@ public class PlayerConnection implements PacketPlayInListener {
2013-12-08 05:52:54 +00: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