Skip to content

Commit

Permalink
mark rubidium as incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 14, 2024
1 parent ad4c012 commit 9bbe9d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public enum CompatMods {
EMBEDDIUM("embeddium"),
IRIS("iris"),
OCULUS("oculus"),
RUBIDIUM("rubidium"),
SODIUM("sodium");

public final boolean isLoaded;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class ForgeSodiumCompatHelper {
public static void init() {
if (CompatMods.SODIUM.isLoaded && !(CompatMods.RUBIDIUM.isLoaded && CompatMods.EMBEDDIUM.isLoaded)) {
if (CompatMods.SODIUM.isLoaded && !CompatMods.EMBEDDIUM.isLoaded) {
SodiumCompatHelper.IS_SODIUM_0_6 = true;
}
}
Expand Down
8 changes: 8 additions & 0 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ mandatory = true
versionRange = "${forge_version_range}"
side = "CLIENT"

# Simulates a breaks/incompatible dependency
[[dependencies.${mod_id}]]
modId = "rubidium"
mandatory = false
versionRange = "[0.0-INCOMPATIBLE]"
ordering = "NONE"
side = "CLIENT"

[[dependencies.${mod_id}]]
modId = "embeddium"
mandatory = false
Expand Down

0 comments on commit 9bbe9d2

Please sign in to comment.