From fa1c15b082e7781847f4fc07bfb0336b04b261e7 Mon Sep 17 00:00:00 2001 From: Doru991 <75124791+Doru991@users.noreply.github.com> Date: Wed, 4 Oct 2023 02:07:29 +0300 Subject: [PATCH] Fix plant species reagent mutations (#20702) --- Content.Server/Botany/SeedPrototype.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } -- 2.51.2