13
0
geforkt von Mirrors/Paper
Paper/CraftBukkit-Patches/0048-Enable-Foreign-Language-Signs.patch

23 Zeilen
1.0 KiB
Diff

2013-07-02 05:14:40 +02:00
From 5ad52598e1bad0229c825571bdfe9842a43fcec3 Mon Sep 17 00:00:00 2001
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-07-02 05:03:56 +02:00
index e5937fc..1422d67 100644
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
2013-07-02 05:03:56 +02:00
@@ -1578,7 +1578,7 @@ public class PlayerConnection extends Connection {
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