From 8117b4705f3516e082733db571a46babdaff98ea Mon Sep 17 00:00:00 2001 From: Arthur Date: Sat, 14 Nov 2026 13:16:43 +0100 Subject: [PATCH] fix: prefer iconFile over logoFile for neoforge mod icons --- .../instances/commands/embedded_content_metadata.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/app-lib/src/state/instances/commands/embedded_content_metadata.rs b/packages/app-lib/src/state/instances/commands/embedded_content_metadata.rs index 9a4f8ab9ddb..1e8284cbde3 100644 --- a/packages/app-lib/src/state/instances/commands/embedded_content_metadata.rs +++ b/packages/app-lib/src/state/instances/commands/embedded_content_metadata.rs @@ -284,10 +284,13 @@ fn parse_toml_metadata( .and_then(toml_scalar_string) .and_then(|value| resolve_toml_value(&value, &root, manifest)) .and_then(|value| clean_string(&value, MAX_VERSION_CHARS)); - let icon = mod_table - .get("logoFile") - .and_then(TomlValue::as_str) - .and_then(safe_archive_path); + // NeoForge's iconFile is the square mod icon, logoFile is a wide banner + let icon = ["iconFile", "logoFile"].into_iter().find_map(|key| { + mod_table + .get(key) + .and_then(TomlValue::as_str) + .and_then(safe_archive_path) + }); Some(( EmbeddedContentMetadata {