Fixed the background of lexicon entry buttons being black if it's a priority elven knowledge.

This commit is contained in:
Lizbeth Rika committed 2015-02-21 15:21:22 +00:00
1 parent d2f151bb7d
commit 63fe43e58b
1 file changed
+3
@@ -56,6 +56,9 @@ public class GuiButtonInvisible extends GuiButtonLexicon {
String format = FontHelper.getFormatFromString(displayString);
if(format.length() > 1) {
char key = format.charAt(format.length() - 1);
if(key == 'o' && format.length() > 3)
key = format.charAt(1);
for(EnumChatFormatting ecf : EnumChatFormatting.class.getEnumConstants())
if(ecf.getFormattingCode() == key) {
if(ecf.ordinal() > 15)