Skip to content

Commit db006e4

Browse files
committedApr 3, 2024·
show sodium on mac when sodiummac doesn't exist for the selected version
closes #4
1 parent 71dc662 commit db006e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/kotlin/com/pistacium/modcheck/ModCheckFrameFormExt.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class ModCheckFrameFormExt : ModCheckFrameForm() {
410410
val modVersion = mod.getModVersion(mcVersion)
411411
if (modVersion != null) {
412412
// prioritize sodium-mac
413-
if (mod.modid == "sodium" && currentOS == "osx") continue@outer
413+
if (mod.modid == "sodium" && currentOS == "osx" && ModCheck.availableMods.find { it.modid == "sodiummac" }?.versions?.find { it.target_version.contains(mcVersion) } != null) continue@outer
414414
for (condition in mod.traits) {
415415
if (condition == "ssg-only" && !setSeedRadioButton!!.isSelected) continue@outer
416416
if (condition == "rsg-only" && !randomSeedRadioButton!!.isSelected) continue@outer

0 commit comments

Comments
 (0)
Please sign in to comment.