Skip to content

Commit 82d6f5f

Browse files
committed
Fix installer failing to detect vanilla CurseForge installations.
1 parent 86d7482 commit 82d6f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/src/main/kotlin/gg/essential/installer/launcher/curseforge/CurseForgeInstance.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import java.util.*
2727

2828
@Serializable
2929
data class CurseForgeInstance(
30-
val baseModLoader: Modloader,
30+
val baseModLoader: Modloader?,
3131
val lastPlayed: Instant = Instant.MIN,
3232
// val isVanilla: Boolean, // Removed, since we don't need it, and some instances seem to miss it?
3333
val guid: String = UUID.randomUUID().toString(),
@@ -44,6 +44,6 @@ data class CurseForgeInstance(
4444
)
4545

4646
val modloaderInfo: ModloaderInfo
47-
get() = ModloaderInfo.fromVersionString(baseModLoader.name)
47+
get() = ModloaderInfo.fromVersionString(baseModLoader?.name ?: gameVersion.toString())
4848

4949
}

0 commit comments

Comments
 (0)