From bef30e98cf9f3697ac6fefbd82f4cb160edaad46 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Fri, 20 Jan 2023 10:39:21 -0500 Subject: betterchat compat --- .../cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/cc/woverflow') diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java index ee94a35..0ef7736 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java +++ b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java @@ -5,6 +5,7 @@ import cc.woverflow.chatting.chat.ChatSearchingManager; import cc.woverflow.chatting.chat.ChatTabs; import cc.woverflow.chatting.config.ChattingConfig; import cc.woverflow.chatting.utils.EaseOutQuart; +import cc.woverflow.chatting.utils.ModCompatHooks; import net.minecraft.client.gui.GuiNewChat; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.EnumChatFormatting; @@ -84,6 +85,9 @@ public abstract class GuiNewChatMixin_SmoothMessages { if (!EnumChatFormatting.getTextWithoutFormattingCodes(chatComponent.getUnformattedText()).toLowerCase(Locale.ENGLISH).contains(ChatSearchingManager.INSTANCE.getLastSearch().toLowerCase(Locale.ENGLISH))) { return; } + if (ModCompatHooks.getBetterChatSmoothMessages()) { + return; + } if (ChatTabs.INSTANCE.getHasCancelledAnimation()) { ChatTabs.INSTANCE.setHasCancelledAnimation(false); return; -- cgit