mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 00:37:57 +00:00
Fixed the background of lexicon entry buttons being black if it's a priority elven knowledge.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user