Skip to content

Commit

Permalink
fixed the wrong wording
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Nov 23, 2024
1 parent 95062c9 commit 4779b8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public class ChatPeekMixin_SkyHanni {
@Dynamic("SkyHanni")
@Inject(method = "peek", at = @At("RETURN"), cancellable = true)
private static void cancel(CallbackInfoReturnable<Boolean> cir) {
if (!ChattingConfig.INSTANCE.getChatPeek() && cir.getReturnValue()) {
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.");
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();
}
}
Expand Down

0 comments on commit 4779b8e

Please sign in to comment.