Return from TryMetabolize early if there are no reagents to process (#11372)

This commit is contained in:
Illiux
2022-09-17 07:26:01 -07:00
committed by GitHub
parent 3d3de873ff
commit 611b11976e

View File

@@ -115,7 +115,7 @@ namespace Content.Server.Body.Systems
solutionEntityUid = uid; solutionEntityUid = uid;
} }
if (solutionEntityUid == null || solution == null) if (solutionEntityUid == null || solution == null || solution.Contents.Count == 0)
return; return;
// randomize the reagent list so we don't have any weird quirks // randomize the reagent list so we don't have any weird quirks