mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Strip weird sign chars sent by OSX due to client bug
This commit is contained in:
parent
2584e0ab06
commit
ddb1f76a26
1 changed files with 2 additions and 2 deletions
|
@ -507,7 +507,7 @@ public class EssentialsSign
|
|||
@Override
|
||||
public final String getLine(final int index)
|
||||
{
|
||||
return event.getLine(index);
|
||||
return event.getLine(index).replaceAll( "\uF700", "" ).replaceAll( "\uF701", "" ); // Mac OSX sends weird chars, ie up and down arrow symbols;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -546,7 +546,7 @@ public class EssentialsSign
|
|||
@Override
|
||||
public final String getLine(final int index)
|
||||
{
|
||||
return sign.getLine(index);
|
||||
return sign.getLine(index).replaceAll( "\uF700", "" ).replaceAll( "\uF701", "" ); // Mac OSX sends weird chars, ie up and down arrow symbols
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue