Fixed trash not being spawned when throwing pies (#33013)

* Fixed trash not being spawned when throwing pies

* Completely removed trash component flag check prior to the spawn loop
This commit is contained in:
Khoa Nguyen
2024-10-31 21:43:11 -04:00
committed by GitHub
parent cf0d6c482e
commit 835d0b4d4a

View File

@@ -51,12 +51,9 @@ namespace Content.Server.Nutrition.EntitySystems
{
_puddle.TrySpillAt(uid, solution, out _, false);
}
if (foodComp.Trash.Count == 0)
foreach (var trash in foodComp.Trash)
{
foreach (var trash in foodComp.Trash)
{
EntityManager.SpawnEntity(trash, Transform(uid).Coordinates);
}
EntityManager.SpawnEntity(trash, Transform(uid).Coordinates);
}
}
ActivatePayload(uid);