Fix categories (#10683)

This commit is contained in:
Morb
2022-08-18 17:27:46 -07:00
committed by GitHub
parent de7895ca82
commit 86d7a1fbb9
6 changed files with 16 additions and 9 deletions

View File

@@ -167,7 +167,7 @@ namespace Content.Client.Construction.UI
continue;
}
if (!string.IsNullOrEmpty(category) && category != Loc.GetString("construction-presenter-category-all"))
if (!string.IsNullOrEmpty(category) && category != Loc.GetString("construction-category-all"))
{
if (recipe.Category != category)
continue;
@@ -191,11 +191,11 @@ namespace Content.Client.Construction.UI
var uniqueCategories = new HashSet<string>();
// hard-coded to show all recipes
uniqueCategories.Add(Loc.GetString("construction-presenter-category-all"));
uniqueCategories.Add(Loc.GetString("construction-category-all"));
foreach (var prototype in _prototypeManager.EnumeratePrototypes<ConstructionPrototype>())
{
var category = Loc.GetString(prototype.Category);
var category = prototype.Category;
if (!string.IsNullOrEmpty(category))
uniqueCategories.Add(category);