mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Fixed grabbing colors from the wrong file
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user