From a7980be623641e19cb5a9747704ae4449c321b5a Mon Sep 17 00:00:00 2001 From: drteaspoon420 <87363733+drteaspoon420@users.noreply.github.com> Date: Tue, 12 Sep 2023 22:40:11 +0300 Subject: [PATCH] Ensure plants always have some reagents after crossing (#20078) --- Content.Server/Botany/Systems/MutationSystem.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/Botany/Systems/MutationSystem.cs b/Content.Server/Botany/Systems/MutationSystem.cs index 68863a4801..a1794b8118 100644 --- a/Content.Server/Botany/Systems/MutationSystem.cs +++ b/Content.Server/Botany/Systems/MutationSystem.cs @@ -320,7 +320,10 @@ public sealed class MutationSystem : EntitySystem { if (Random(0.5f)) { - val.Remove(this_chem.Key); + if (val.Count > 1) + { + val.Remove(this_chem.Key); + } } } } -- 2.51.2