summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
index 95117e657..0e6d2d47c 100644
--- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
+++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
@@ -588,9 +588,18 @@ public class EssentialsSign
@Override
public final String getLine(final int index)
{
- return sign.getLine(index).replaceAll("\uF700", "").replaceAll("\uF701", ""); // Mac OSX sends weird chars, ie up and down arrow symbols
+ StringBuilder builder = new StringBuilder();
+ for (char c : sign.getLine(index).toCharArray())
+ {
+ if (c < 0xF700 || c > 0xF747)
+ {
+ builder.append(c);
+ }
+ }
+ return builder.toString();
+ //return event.getLine(index); // Above code can be removed and replaced with this line when https://github.com/Bukkit/Bukkit/pull/982 is merged.
}
-
+
@Override
public final void setLine(final int index, final String text)
{