Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Updated Support Chat Filter with new color value found on server. (#72)
Browse files Browse the repository at this point in the history
* Updated Support Chat Filter with new color value found on server.

* Updated Support Chat Filter with new color value found on server.
  • Loading branch information
mudkip989 authored Feb 17, 2024
1 parent 05aa5b5 commit 3e46190
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

import com.google.common.collect.Lists;
import io.github.homchom.recode.mod.config.Config;
import io.github.homchom.recode.render.*;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TextColor;
import org.w3c.dom.css.RGBColor;


import java.util.List;
import java.util.function.Predicate;
Expand Down Expand Up @@ -83,7 +86,7 @@ public static Predicate<Component> getMessagePredicate() {

//SUPPORT
private static final ChatPattern supportChatPattern = new ChatPattern(
new ChatPattern.ChatComponent("[SUPPORT] ", TextColor.fromLegacyFormat(ChatFormatting.BLUE),0)
new ChatPattern.ChatComponent("[SUPPORT] ", TextColor.fromRgb(0x557fd4),0)
);
public static Predicate<Component> getSupportPredicate() {
return text -> (new ChatPattern(text)).contains(supportChatPattern);
Expand Down

0 comments on commit 3e46190

Please sign in to comment.