]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix plant species reagent mutations (#20702)
authorDoru991 <75124791+Doru991@users.noreply.github.com>
Tue, 3 Oct 2023 23:07:29 +0000 (02:07 +0300)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 23:07:29 +0000 (15:07 -0800)
Content.Server/Botany/SeedPrototype.cs

index 82d5b8de10b270cf34363500385b50befda10677..1a3c0473a48211eb7781e887d57335860dd4fae4 100644 (file)
@@ -374,15 +374,15 @@ public partial class SeedData
         // Adding the new chemicals from the new species.
         foreach (var otherChem in other.Chemicals)
         {
-            Chemicals.TryAdd(otherChem.Key, otherChem.Value);
+            newSeed.Chemicals.TryAdd(otherChem.Key, otherChem.Value);
         }
 
         // Removing the inherent chemicals from the old species. Leaving mutated/crossbread ones intact.
-        foreach (var originalChem in Chemicals)
+        foreach (var originalChem in newSeed.Chemicals)
         {
             if (!other.Chemicals.ContainsKey(originalChem.Key) && originalChem.Value.Inherent)
             {
-                Chemicals.Remove(originalChem.Key);
+                newSeed.Chemicals.Remove(originalChem.Key);
             }
         }