summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-21 21:51:02 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-21 21:51:02 +0200
commit123bc861062fe28a41d2abd8f5cea50866b8374c (patch)
tree54d8e7f939f6f5bfe72c2e830f0288245f78be58 /src/main/java/moe/nea
parentf25b818d9d41e2bb3969399cfc8bbff976b5aad7 (diff)
downloadultra-notifier-123bc861062fe28a41d2abd8f5cea50866b8374c.tar.gz
ultra-notifier-123bc861062fe28a41d2abd8f5cea50866b8374c.tar.bz2
ultra-notifier-123bc861062fe28a41d2abd8f5cea50866b8374c.zip
Re-add 1.14 support
Diffstat (limited to 'src/main/java/moe/nea')
-rw-r--r--src/main/java/moe/nea/ultranotifier/init/NeaMixinConfig.java2
-rw-r--r--src/main/java/moe/nea/ultranotifier/mixin/ChatHudMessageAdded.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/moe/nea/ultranotifier/init/NeaMixinConfig.java b/src/main/java/moe/nea/ultranotifier/init/NeaMixinConfig.java
index a3fc4fc..e543703 100644
--- a/src/main/java/moe/nea/ultranotifier/init/NeaMixinConfig.java
+++ b/src/main/java/moe/nea/ultranotifier/init/NeaMixinConfig.java
@@ -1,6 +1,6 @@
package moe.nea.ultranotifier.init;
-//#if MC < 11404
+//#if FORGE
//$$import org.spongepowered.asm.lib.tree.ClassNode;
//#else
import org.objectweb.asm.tree.ClassNode;
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)