From 13f92b595b895ee66c3e3b1a3aa094592e198829 Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Mon, 12 Aug 2024 16:04:13 +0800 Subject: [PATCH] Add dependency check for `minihudI18n` Signed-off-by: Hendrix-Shen --- src/main/java/com/plusls/MasaGadget/game/Configs.java | 2 +- .../mod_tweak/minihud/minihudI18n/MixinRenderHandler.java | 2 +- versions/1.21.0-fabric/gradle.properties | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/plusls/MasaGadget/game/Configs.java b/src/main/java/com/plusls/MasaGadget/game/Configs.java index 3f6a0bc..081dbc3 100644 --- a/src/main/java/com/plusls/MasaGadget/game/Configs.java +++ b/src/main/java/com/plusls/MasaGadget/game/Configs.java @@ -138,7 +138,7 @@ public class Configs { public static MagicConfigDouble showOriginalConfigNameScale = Configs.cf.newConfigDouble("showOriginalConfigNameScale", 0.65, 0, 2); // MiniHUD - @Dependencies(require = @Dependency(ModId.minihud)) + @Dependencies(require = @Dependency(value = ModId.minihud, versionPredicates = "<0.31.999-sakura.21")) @Config(category = ConfigCategory.MINIHUD) public static MagicConfigBoolean minihudI18n = Configs.cf.newConfigBoolean("minihudI18n", false); diff --git a/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/minihud/minihudI18n/MixinRenderHandler.java b/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/minihud/minihudI18n/MixinRenderHandler.java index e926c85..ae12556 100644 --- a/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/minihud/minihudI18n/MixinRenderHandler.java +++ b/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/minihud/minihudI18n/MixinRenderHandler.java @@ -17,7 +17,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@Dependencies(require = @Dependency(ModId.minihud)) +@Dependencies(require = @Dependency(value = ModId.minihud, versionPredicates = "<0.31.999-sakura.21")) @Mixin(value = RenderHandler.class, remap = false) public class MixinRenderHandler { @Unique diff --git a/versions/1.21.0-fabric/gradle.properties b/versions/1.21.0-fabric/gradle.properties index ef20fee..c46bf3a 100644 --- a/versions/1.21.0-fabric/gradle.properties +++ b/versions/1.21.0-fabric/gradle.properties @@ -4,9 +4,9 @@ dependencies.minecraft_version=1.21 # Compatible Libraries dependencies.api.itemscroller_version=1.21-sakura.7 -dependencies.api.litematica_version=1.21-0.19.0 -dependencies.api.minihud_version=1.21-sakura.16 -dependencies.api.tweakeroo_version=1.21-sakura.23 +dependencies.api.litematica_version=1.21-0.19.2-alpha.1 +dependencies.api.minihud_version=1.21-sakura.23 +dependencies.api.tweakeroo_version=1.21-sakura.24 # Publish properties publish.game_version=1.21