Workbench update (#760)

* fix workbench icons

* workbench search

* fix 1

* UI finalize

* fix material localization

* restore shard sprite

* Update sewing_table.yml
This commit is contained in:
Ed
2025-01-15 00:34:08 +03:00
committed by GitHub
parent cf41cabcea
commit 925738afc2
18 changed files with 168 additions and 85 deletions

View File

@@ -27,8 +27,10 @@ public sealed partial class CP14WorkbenchSystem
var recipes = new List<CP14WorkbenchUiRecipesEntry>();
foreach (var recipeId in entity.Comp.Recipes)
{
var recipe = _proto.Index(recipeId);
var entry = new CP14WorkbenchUiRecipesEntry(recipeId, CanCraftRecipe(recipe, placedEntities));
if (!_proto.TryIndex(recipeId, out var indexedRecipe))
continue;
var entry = new CP14WorkbenchUiRecipesEntry(recipeId, CanCraftRecipe(indexedRecipe, placedEntities));
recipes.Add(entry);
}