summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/ultranotifier/mixin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/moe/nea/ultranotifier/mixin')
-rw-r--r--src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java b/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java
index b8239d3..a9323d7 100644
--- a/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java
+++ b/src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java
@@ -19,8 +19,12 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
public class ChatHudMessageAdded {
@Inject(
//#if MC <= 11404
+//#if FORGE
//$$ method = "printChatMessageWithOptionalDeletion",
//#else
+//$$ method = "addMessage(Lnet/minecraft/text/Text;I)V",
+//#endif
+//#else
method = "addMessage(Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageSignatureData;Lnet/minecraft/client/gui/hud/MessageIndicator;)V",
//#endif
at = @At("HEAD"), cancellable = true)