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

Updated Support Chat Filter with new color value found on server. #72

Merged
merged 2 commits into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
homchom marked this conversation as resolved.
Show resolved Hide resolved


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
Loading