Fix material storage going BRRT (#29167)

If the volume hits 0 we just remove it.
This commit is contained in:
metalgearsloth
2024-06-19 07:47:19 +10:00
committed by GitHub
parent 3358aef40f
commit dabf3d1521
2 changed files with 10 additions and 5 deletions

View File

@@ -78,9 +78,6 @@ public sealed partial class LatheMenu : DefaultWindow
/// </summary>
public void PopulateRecipes()
{
if (!_entityManager.TryGetComponent<LatheComponent>(_owner, out var component))
return;
var recipesToShow = new List<LatheRecipePrototype>();
foreach (var recipe in Recipes)
{