diff --git a/YAFCmodel/Data/DataUtils.cs b/YAFCmodel/Data/DataUtils.cs index 016b3de0..711637b8 100644 --- a/YAFCmodel/Data/DataUtils.cs +++ b/YAFCmodel/Data/DataUtils.cs @@ -531,7 +531,8 @@ public static bool Match(this FactorioObject obj, SearchQuery query) { if (obj.name.IndexOf(token, StringComparison.OrdinalIgnoreCase) < 0 && obj.locName.IndexOf(token, StringComparison.InvariantCultureIgnoreCase) < 0 && - (obj.locDescr == null || obj.locDescr.IndexOf(token, StringComparison.InvariantCultureIgnoreCase) < 0)) + (obj.locDescr == null || obj.locDescr.IndexOf(token, StringComparison.InvariantCultureIgnoreCase) < 0) && + (obj.factorioType == null || obj.factorioType.IndexOf(token, StringComparison.InvariantCultureIgnoreCase) < 0)) return false; }