aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/woverflow
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2023-01-20 10:39:21 -0500
committerWyvest <45589059+Wyvest@users.noreply.github.com>2023-01-20 10:39:21 -0500
commitbef30e98cf9f3697ac6fefbd82f4cb160edaad46 (patch)
tree06cb2f11f0feb4f5d729a29812cdbde391d5c72a /src/main/java/cc/woverflow
parent5822703b7d770ec67a4c4ca00192006b8f0cb9b9 (diff)
downloadChatting-bef30e98cf9f3697ac6fefbd82f4cb160edaad46.tar.gz
Chatting-bef30e98cf9f3697ac6fefbd82f4cb160edaad46.tar.bz2
Chatting-bef30e98cf9f3697ac6fefbd82f4cb160edaad46.zip
betterchat compat
Diffstat (limited to 'src/main/java/cc/woverflow')
-rw-r--r--src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java4
1 files changed, 4 insertions, 0 deletions
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;