mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
fix npe in /myinfo
This commit is contained in:
parent
4f276ec78e
commit
588a2f1eba
@ -590,6 +590,8 @@ public class FUtil
|
||||
}
|
||||
|
||||
public static String colorize(String string)
|
||||
{
|
||||
if (string != null)
|
||||
{
|
||||
Matcher matcher = Pattern.compile("&#[a-f0-9A-F]{6}").matcher(string);
|
||||
while (matcher.find())
|
||||
@ -599,6 +601,7 @@ public class FUtil
|
||||
}
|
||||
|
||||
string = ChatColor.translateAlternateColorCodes('&', string);
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user