diff --git a/src/main/java/org/polyfrost/chatting/mixin/compat/ChatPeekMixin_SkyHanni.java b/src/main/java/org/polyfrost/chatting/mixin/compat/ChatPeekMixin_SkyHanni.java deleted file mode 100644 index 6496543..0000000 --- a/src/main/java/org/polyfrost/chatting/mixin/compat/ChatPeekMixin_SkyHanni.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.polyfrost.chatting.mixin.compat; - -import cc.polyfrost.oneconfig.utils.Notifications; -import org.polyfrost.chatting.config.ChattingConfig; -import org.spongepowered.asm.mixin.Dynamic; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Pseudo; -import org.spongepowered.asm.mixin.Unique; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -@Pseudo -@Mixin(targets = {"at.hannibal2.skyhanni.features.chat.ChatPeek"}) -public class ChatPeekMixin_SkyHanni { - - @Unique - private static long chatting$lastNotify = System.currentTimeMillis(); - - @Dynamic("SkyHanni") - @Inject(method = "peek", at = @At("RETURN"), cancellable = true) - private static void cancel(CallbackInfoReturnable cir) { - if (ChattingConfig.INSTANCE.getChatPeek() && cir.getReturnValue()) { - if (System.currentTimeMillis() - chatting$lastNotify >= 1000) { - Notifications.INSTANCE.send("Chatting", "You have activated the “Chat peek” feature in both SkyHanni and Chatting. Deactivate one of the two to avoid unintended behavior."); - chatting$lastNotify = System.currentTimeMillis(); - } - } - } -} \ No newline at end of file diff --git a/src/main/resources/mixins.chatting.json b/src/main/resources/mixins.chatting.json index 2bdc703..057ecf4 100644 --- a/src/main/resources/mixins.chatting.json +++ b/src/main/resources/mixins.chatting.json @@ -29,7 +29,6 @@ "GuiUtilsMixin", "HUDUtilsMixin", "InventoryPlayerMixin", - "compat.ChatPeekMixin_SkyHanni", "compat.ChatTabsMixin_SkytilsCopyChat", "compat.EssentialKeybindingRegistryMixin" ]