fixes cargoconsole
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Content.Shared.GameObjects.Components.Cargo
|
|||||||
{
|
{
|
||||||
var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
|
var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
|
||||||
|
|
||||||
_productIds.Clear();
|
_products.Clear();
|
||||||
|
|
||||||
foreach (var id in _productIds)
|
foreach (var id in _productIds)
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ namespace Content.Shared.GameObjects.Components.Cargo
|
|||||||
|
|
||||||
void ISerializationHooks.BeforeSerialization()
|
void ISerializationHooks.BeforeSerialization()
|
||||||
{
|
{
|
||||||
_productIds = new List<string>();
|
_productIds.Clear();
|
||||||
|
|
||||||
foreach (var product in _products)
|
foreach (var product in _products)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -98,10 +98,5 @@ namespace Content.Shared.Prototypes.Cargo
|
|||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
[field: DataField("group")]
|
[field: DataField("group")]
|
||||||
public string Group { get; } = string.Empty;
|
public string Group { get; } = string.Empty;
|
||||||
|
|
||||||
public CargoProductPrototype()
|
|
||||||
{
|
|
||||||
IoCManager.InjectDependencies(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user