diff --git a/Content.Shared/Store/ListingPrototype.cs b/Content.Shared/Store/ListingPrototype.cs index 00d912ede9..a45c020526 100644 --- a/Content.Shared/Store/ListingPrototype.cs +++ b/Content.Shared/Store/ListingPrototype.cs @@ -346,11 +346,10 @@ public sealed partial class ListingDataWithCostModifiers : ListingData /// Values for cost modification. public void AddCostModifier(string modifierSourceId, Dictionary, FixedPoint2> modifiers) { - CostModifiersBySourceId.Add(modifierSourceId, modifiers); + CostModifiersBySourceId.TryAdd(modifierSourceId, modifiers); + if (_costModified != null) - { _costModified = ApplyAllModifiers(); - } } /// Remove cost modifier with passed sourceId.