2014-04-07 07:42:16 +08:00
|
|
|
From f83fcc664288a21eba0fba320a098f6dd57575dc Mon Sep 17 00:00:00 2001
|
2013-12-08 13:52:54 +08: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-04-07 07:42:16 +08:00
|
|
|
index 4c509b6..213183d 100644
|
2013-12-08 13:52:54 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2014-02-24 15:04:12 +08:00
|
|
|
@@ -1584,6 +1584,7 @@ public class PlayerConnection implements PacketPlayInListener {
|
2013-12-08 13:52:54 +08: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;
|
|
|
|
--
|
2014-03-27 04:34:47 +08:00
|
|
|
1.8.5.2.msysgit.0
|
2013-12-08 13:52:54 +08:00
|
|
|
|