From: Doru991 <75124791+Doru991@users.noreply.github.com> Date: Tue, 3 Oct 2023 23:07:29 +0000 (+0300) Subject: Fix plant species reagent mutations (#20702) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=fa1c15b082e7781847f4fc07bfb0336b04b261e7;p=space-station-14.git Fix plant species reagent mutations (#20702) --- diff --git a/Content.Server/Botany/SeedPrototype.cs b/Content.Server/Botany/SeedPrototype.cs index 82d5b8de10..1a3c0473a4 100644 --- a/Content.Server/Botany/SeedPrototype.cs +++ b/Content.Server/Botany/SeedPrototype.cs @@ -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); } }