From c20d00509e524ccf04984775b4b797a570e240be Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 4 Apr 2026 23:55:41 +0200 Subject: [PATCH] Fix: wrong loader install mod --- src-tauri/src/commands.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 64ba0c8..0f7ed26 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -10,6 +10,7 @@ use crate::{launcher::LAUNCHER_DIR, save_state, LauncherSettings, Mod, SharedSta struct ModrinthVersion { version_number: String, game_versions: Vec, + loaders: Vec, files: Vec, } @@ -175,7 +176,9 @@ pub async fn install_mod(mut mod_meta: Mod, versions: Vec) -> Result<(), let mut compatible: Vec<&ModrinthVersion> = versions_list .iter() - .filter(|v| v.game_versions.contains(&mc_version)) + .filter(|v| { + v.game_versions.contains(&mc_version) && v.loaders.iter().any(|l| l == "fabric") + }) .collect(); if compatible.is_empty() {