Fix weird lifestage autorefactors.
This commit is contained in:
@@ -110,16 +110,11 @@ namespace Content.Client.Kitchen.UI
|
||||
_menu.IngredientsList.Clear();
|
||||
foreach (var entity in containedSolids)
|
||||
{
|
||||
if (!_entityManager.EntityExists(entity))
|
||||
if (_entityManager.Deleted(entity))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ((!_entityManager.EntityExists(entity) ? EntityLifeStage.Deleted : _entityManager.GetComponent<MetaDataComponent>(entity).EntityLifeStage) >= EntityLifeStage.Deleted)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Texture? texture;
|
||||
if (_entityManager.TryGetComponent(entity, out IconComponent? iconComponent))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user