summaryrefslogtreecommitdiff
path: root/src/main/java/moe
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-24 18:16:37 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-24 18:16:37 +0200
commit5b68a5f3f716c8d12117b39efba8c4b8d09fcb98 (patch)
tree77fbd5503748073a4cf4968bda4d592d2aebd977 /src/main/java/moe
parentb681f11ea5a72d4ec6a34c2807f6ed781bbd19bc (diff)
downloadultra-notifier-5b68a5f3f716c8d12117b39efba8c4b8d09fcb98.tar.gz
ultra-notifier-5b68a5f3f716c8d12117b39efba8c4b8d09fcb98.tar.bz2
ultra-notifier-5b68a5f3f716c8d12117b39efba8c4b8d09fcb98.zip
Add basic chat commands
Diffstat (limited to 'src/main/java/moe')
-rw-r--r--src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java b/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java
index b6c013f..2b65282 100644
--- a/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java
+++ b/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java
@@ -1,6 +1,6 @@
package moe.nea.ultranotifier.mixin;
-import moe.nea.ultranotifier.event.ChatLineAddedEvent;
+import moe.nea.ultranotifier.event.ChatGuiLineEvent;
import moe.nea.ultranotifier.event.UltraNotifierEvents;
import net.minecraft.client.gui.hud.ChatHud;
//#if MC > 11404
@@ -37,7 +37,7 @@ public class ChatHudMessageAdded {
//#endif
CallbackInfo ci
) {
- if (UltraNotifierEvents.post(new ChatLineAddedEvent(message)).isCancelled()) {
+ if (UltraNotifierEvents.post(new ChatGuiLineEvent(message)).isCancelled()) {
ci.cancel();
}
}