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 b5792c8..0000000 --- a/src/main/java/org/polyfrost/chatting/mixin/compat/ChatPeekMixin_SkyHanni.java +++ /dev/null @@ -1,31 +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", "SkyHanni's chat peek has been replaced by Chatting. You can configure this via OneConfig, by clicking the right shift key on your keyboard, or by typing /chatting in your chat."); - chatting$lastNotify = System.currentTimeMillis(); - } - } - cir.setReturnValue(false); - } -} \ 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" ]