From 7bc61cf8c5fb85facae70b5ede3b1ca0be740848 Mon Sep 17 00:00:00 2001 From: Treetrain1 Date: Thu, 16 May 2024 00:27:32 -0500 Subject: [PATCH] Don't check for Sodium 0.5, mark as broken --- .../frozenblock/wilderwild/mixin/WilderWildMixinPlugin.java | 2 +- src/main/resources/fabric.mod.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/frozenblock/wilderwild/mixin/WilderWildMixinPlugin.java b/src/main/java/net/frozenblock/wilderwild/mixin/WilderWildMixinPlugin.java index 3e88780702..6055d3f6e1 100644 --- a/src/main/java/net/frozenblock/wilderwild/mixin/WilderWildMixinPlugin.java +++ b/src/main/java/net/frozenblock/wilderwild/mixin/WilderWildMixinPlugin.java @@ -55,7 +55,7 @@ public boolean shouldApplyMixin(String targetClassName, @NotNull String mixinCla MixinsConfig config = MixinsConfig.get(); boolean hasEmbeddium = FabricLoader.getInstance().isModLoaded("embeddium"); boolean disableNonSodium = hasEmbeddium || FrozenBools.HAS_SODIUM; - boolean enableSodium = FrozenBools.HAS_SODIUM && FabricLoader.getInstance().getModContainer("sodium").orElseThrow().getMetadata().getVersion().getFriendlyString().contains("0.5."); + boolean enableSodium = FrozenBools.HAS_SODIUM; if (mixinClassName.contains("client.sodium")) { return config.client_sodium && enableSodium && !hasEmbeddium; } else if (mixinClassName.contains("client.embeddium")) { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 51ab326724..4d9b4c7d44 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -70,6 +70,9 @@ "cloth-config": "*", "terrablender": "*" }, + "breaks": { + "sodium": "<0.5.0" + }, "custom": { "modmenu": { "links": {