@@ -311,12 +311,12 @@ private fun LauncherPanel(
311311 var mutationBusy by remember { mutableStateOf(false ) }
312312 var instanceError by remember { mutableStateOf<String ?>(null ) }
313313 val activeInstance = inventory?.instances?.firstOrNull { it.id == instanceId }
314- val withMods = activeInstance?.loader?.id in setOf (" fabric" , " quilt" )
314+ val withMods = activeInstance?.loader?.id in setOf (" fabric" , " quilt" , " neoforge " )
315315 var localModWarnings by remember { mutableStateOf<List <String >>(emptyList()) }
316316 LaunchedEffect (activeInstance?.id, modsBusy) {
317317 localModWarnings = emptyList()
318318 val current = activeInstance
319- if (current != null && current.loader?.id in setOf (" fabric" , " quilt" ) && ! modsBusy) {
319+ if (current != null && current.loader?.id in setOf (" fabric" , " quilt" , " neoforge " ) && ! modsBusy) {
320320 localModWarnings = try {
321321 session.modManager.list(current.id).warnings
322322 } catch (cancelled: CancellationException ) {
@@ -369,7 +369,7 @@ private fun LauncherPanel(
369369 instanceId = id
370370 val target = inventory?.instances?.firstOrNull { it.id == id }
371371 if (id.isBlank() || target?.loader == null ) lastVanillaId = id
372- else if (target.loader?.id in setOf (" fabric" , " quilt" )) lastModdedId = id
372+ else if (target.loader?.id in setOf (" fabric" , " quilt" , " neoforge " )) lastModdedId = id
373373 if (id.isBlank()) {
374374 selected = manifest.versions.firstOrNull { it.id == legacyVersionId }
375375 ? : manifest.versions.firstOrNull {
@@ -396,7 +396,7 @@ private fun LauncherPanel(
396396 fun selectModdedMode () {
397397 if (locked || inventory == null || withMods) return
398398 lastVanillaId = instanceId
399- val profiles = inventory?.instances.orEmpty().filter { it.loader?.id in setOf (" fabric" , " quilt" ) }
399+ val profiles = inventory?.instances.orEmpty().filter { it.loader?.id in setOf (" fabric" , " quilt" , " neoforge " ) }
400400 val existing = profiles.firstOrNull { it.id == lastModdedId }
401401 ? : profiles.firstOrNull { it.minecraftVersionId == selected?.id }
402402 ? : profiles.firstOrNull()
0 commit comments