2013-09-08 06:36:30 +08:00
|
|
|
From 71aaa40b9d6f728e56c230678bedcba3e04f3a5e Mon Sep 17 00:00:00 2001
|
2013-06-21 15:53:18 +08:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Fri, 21 Jun 2013 17:53:03 +1000
|
|
|
|
Subject: [PATCH] Enable Foreign Language Signs
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2013-09-08 06:36:30 +08:00
|
|
|
index 4c900a6..7528703 100644
|
2013-06-21 15:53:18 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2013-09-08 06:36:30 +08:00
|
|
|
@@ -1565,7 +1565,7 @@ public class PlayerConnection extends Connection {
|
2013-06-21 15:53:18 +08:00
|
|
|
flag = false;
|
|
|
|
} else {
|
|
|
|
for (i = 0; i < packet130updatesign.lines[j].length(); ++i) {
|
|
|
|
- if (SharedConstants.allowedCharacters.indexOf(packet130updatesign.lines[j].charAt(i)) < 0) {
|
|
|
|
+ if (!SharedConstants.isAllowedChatCharacter(packet130updatesign.lines[j].charAt(i))) { // Spigot
|
|
|
|
flag = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|