aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0060-Remove-OS-X-Special-Chars-from-Signs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'CraftBukkit-Patches/0060-Remove-OS-X-Special-Chars-from-Signs.patch')
-rw-r--r--CraftBukkit-Patches/0060-Remove-OS-X-Special-Chars-from-Signs.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0060-Remove-OS-X-Special-Chars-from-Signs.patch b/CraftBukkit-Patches/0060-Remove-OS-X-Special-Chars-from-Signs.patch
new file mode 100644
index 0000000000..49800c3b07
--- /dev/null
+++ b/CraftBukkit-Patches/0060-Remove-OS-X-Special-Chars-from-Signs.patch
@@ -0,0 +1,21 @@
+From 781e95ae6af11cc45899e75e764ec85a8705178c Mon Sep 17 00:00:00 2001
+From: md_5 <[email protected]>
+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
+index f170ad0..1ee5541 100644
+--- a/src/main/java/net/minecraft/server/PlayerConnection.java
++++ b/src/main/java/net/minecraft/server/PlayerConnection.java
+@@ -1584,6 +1584,7 @@ public class PlayerConnection implements PacketPlayInListener {
+
+ 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.9.1
+