From 14f2deb47f41548fd8aa00f0c2d2e4c242948055 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 5 Mar 2021 10:25:21 +0100 Subject: [PATCH] fixes cargoconsole --- .../Components/Cargo/SharedGalacticMarketComponent.cs | 4 ++-- Content.Shared/Prototypes/Cargo/CargoProductPrototype.cs | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Content.Shared/GameObjects/Components/Cargo/SharedGalacticMarketComponent.cs b/Content.Shared/GameObjects/Components/Cargo/SharedGalacticMarketComponent.cs index 2dfee6b1fc..2c9660984c 100644 --- a/Content.Shared/GameObjects/Components/Cargo/SharedGalacticMarketComponent.cs +++ b/Content.Shared/GameObjects/Components/Cargo/SharedGalacticMarketComponent.cs @@ -30,7 +30,7 @@ namespace Content.Shared.GameObjects.Components.Cargo { var prototypeManager = IoCManager.Resolve(); - _productIds.Clear(); + _products.Clear(); foreach (var id in _productIds) { @@ -45,7 +45,7 @@ namespace Content.Shared.GameObjects.Components.Cargo void ISerializationHooks.BeforeSerialization() { - _productIds = new List(); + _productIds.Clear(); foreach (var product in _products) { diff --git a/Content.Shared/Prototypes/Cargo/CargoProductPrototype.cs b/Content.Shared/Prototypes/Cargo/CargoProductPrototype.cs index bd25f1a33d..32e9b19609 100644 --- a/Content.Shared/Prototypes/Cargo/CargoProductPrototype.cs +++ b/Content.Shared/Prototypes/Cargo/CargoProductPrototype.cs @@ -98,10 +98,5 @@ namespace Content.Shared.Prototypes.Cargo [ViewVariables] [field: DataField("group")] public string Group { get; } = string.Empty; - - public CargoProductPrototype() - { - IoCManager.InjectDependencies(this); - } } }