From 137e5a9fde508ed19b8aed211bb4a39e747dea46 Mon Sep 17 00:00:00 2001 From: iAmAsval Date: Fri, 5 Jul 2019 09:51:36 +0200 Subject: [PATCH] fixed featured image for some items (backpacks afaik) --- FModel/Methods/IconGenerator/ItemIcon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FModel/Methods/IconGenerator/ItemIcon.cs b/FModel/Methods/IconGenerator/ItemIcon.cs index c57a0501..6aab2924 100644 --- a/FModel/Methods/IconGenerator/ItemIcon.cs +++ b/FModel/Methods/IconGenerator/ItemIcon.cs @@ -214,7 +214,7 @@ namespace FModel ? catalogFilePath = JohnWick.ExtractAsset(ThePak.CurrentUsedPak, catName) : catalogFilePath = JohnWick.ExtractAsset(ThePak.AllpaksDictionary[catName], catName); - if (catalogFilePath != null) + if (!string.IsNullOrEmpty(catalogFilePath)) { Checking.WasFeatured = true; if (catalogFilePath.Contains(".uasset") || catalogFilePath.Contains(".uexp") || catalogFilePath.Contains(".ubulk"))