From 611b11976e7bb63949e0fa7e56e2f75fc5dcda15 Mon Sep 17 00:00:00 2001 From: Illiux Date: Sat, 17 Sep 2022 07:26:01 -0700 Subject: [PATCH] Return from TryMetabolize early if there are no reagents to process (#11372) --- Content.Server/Body/Systems/MetabolizerSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Body/Systems/MetabolizerSystem.cs b/Content.Server/Body/Systems/MetabolizerSystem.cs index 53b4bede29..a438a4a549 100644 --- a/Content.Server/Body/Systems/MetabolizerSystem.cs +++ b/Content.Server/Body/Systems/MetabolizerSystem.cs @@ -115,7 +115,7 @@ namespace Content.Server.Body.Systems solutionEntityUid = uid; } - if (solutionEntityUid == null || solution == null) + if (solutionEntityUid == null || solution == null || solution.Contents.Count == 0) return; // randomize the reagent list so we don't have any weird quirks