Fixed grabbing colors from the wrong file

This commit is contained in:
nossr50
2019-01-12 15:58:35 -08:00
parent b38c589125
commit 1f2e6cd5f5
3 changed files with 9 additions and 10 deletions

View File

@ -761,11 +761,11 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
public ChatColor getJSONActionBarColor(NotificationType notificationType)
{
return getChatColor(LocaleLoader.getString("Style.JSON.Notification."+notificationType.toString()+".Color"));
return getChatColor(config.getString("Style.JSON.Notification."+notificationType.toString()+".Color"));
}
private ChatColor getChatColorFromKey(String keyLocation) {
String colorName = LocaleLoader.getString(keyLocation);
String colorName = config.getString(keyLocation);
return getChatColor(colorName);
}

View File

@ -68,7 +68,6 @@ public class TextComponentFactory {
public static TextComponent getNotificationTextComponent(String text, NotificationType notificationType)
{
System.out.println("Test");
TextComponent textComponent = new TextComponent(text);
textComponent.setColor(getNotificationColor(notificationType));
return textComponent;