]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Ensure plants always have some reagents after crossing (#20078)
authordrteaspoon420 <87363733+drteaspoon420@users.noreply.github.com>
Tue, 12 Sep 2023 19:40:11 +0000 (22:40 +0300)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 19:40:11 +0000 (11:40 -0800)
Content.Server/Botany/Systems/MutationSystem.cs

index 68863a4801b4e20cb44e81ae441289161a580955..a1794b811812a837d2cc209ee708ae25d4bcbebd 100644 (file)
@@ -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);
+                    }
                 }
             }
         }