From 835d0b4d4a861c4697c473841c0e00ae7115e4d0 Mon Sep 17 00:00:00 2001 From: Khoa Nguyen Date: Thu, 31 Oct 2024 21:43:11 -0400 Subject: [PATCH] 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 --- Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs b/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs index 2ff94760f6..b107e47c79 100644 --- a/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs @@ -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); -- 2.51.2