Adds an integration test for saving and loading a multi grid map.
Fixes a bug in SharedGalacticMarketComponent where the products were not being cleared between calls to ExposeData.
This commit is contained in:
@@ -69,6 +69,7 @@ namespace Content.Shared.GameObjects.Components.Cargo
|
||||
{
|
||||
var products = serializer.ReadDataField("products", new List<string>());
|
||||
var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
|
||||
_products.Clear();
|
||||
foreach (var id in products)
|
||||
{
|
||||
if (!prototypeManager.TryIndex(id, out CargoProductPrototype product))
|
||||
|
||||
Reference in New Issue
Block a user