diff --git a/src/main/java/io/github/darkkronicle/advancedchatfilters/FiltersInitHandler.java b/src/main/java/io/github/darkkronicle/advancedchatfilters/FiltersInitHandler.java index b4ed7bf..fb09d70 100644 --- a/src/main/java/io/github/darkkronicle/advancedchatfilters/FiltersInitHandler.java +++ b/src/main/java/io/github/darkkronicle/advancedchatfilters/FiltersInitHandler.java @@ -63,7 +63,7 @@ public void registerModHandlers() { "advancedchatfilters.config.replacetype.onlymatch", "advancedchatfilters.config.replacetype.info.onlymatch", true, - false); + true); // Initiate processors MatchProcessorRegistry processorRegistry = MatchProcessorRegistry.getInstance(); diff --git a/src/main/java/io/github/darkkronicle/advancedchatfilters/config/gui/GuiFilterEditor.java b/src/main/java/io/github/darkkronicle/advancedchatfilters/config/gui/GuiFilterEditor.java index c62f587..d97e7d9 100644 --- a/src/main/java/io/github/darkkronicle/advancedchatfilters/config/gui/GuiFilterEditor.java +++ b/src/main/java/io/github/darkkronicle/advancedchatfilters/config/gui/GuiFilterEditor.java @@ -126,12 +126,12 @@ public void save() { filter.getName().config.setValueFromString(name.getText()); filter.getFindString().config.setValueFromString(findString.getText()); filter.getReplaceTo().config.setValueFromString(replaceString.getText()); - filter.getTextColor().config.setIntegerValue(textColor.getAndRefreshColor4f().color()); + filter.getTextColor().config.setValueFromString(textColor.getText()); filter.getReplaceTextColor().config.setBooleanValue(setTextColor.isCurrentlyOn()); filter.getReplaceType().config.setOptionListValue(replaceTypeWidget.getSelectedEntry()); filter.getBackgroundColor() .config - .setIntegerValue(backgroundColor.getAndRefreshColor4f().color()); + .setValueFromString(backgroundColor.getText()); filter.getReplaceBackgroundColor() .config .setBooleanValue(setBackgroundColor.isCurrentlyOn());