mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
7b0c576798
Allows us much greater control over the Spigot portion of the code and makes us more "proper" Credit to @Dmck2b for originally passing the idea along a while back
22 lines
932 B
Diff
22 lines
932 B
Diff
From 781e95ae6af11cc45899e75e764ec85a8705178c Mon Sep 17 00:00:00 2001
|
|
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
|
|
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
|
|
|