]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed trash not being spawned when throwing pies (#33013)
authorKhoa Nguyen <akhoa.nv@gmail.com>
Fri, 1 Nov 2024 01:43:11 +0000 (21:43 -0400)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 01:43:11 +0000 (21:43 -0400)
* 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

index 2ff94760f6bfc8bff0fe9de7515106922feb1da4..b107e47c79d1a2b6bd407e29b6fa90a3acfab87e 100644 (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);