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:
Acruid
2020-06-08 13:15:08 -07:00
parent e85b839d27
commit 694a5dd332
2 changed files with 72 additions and 0 deletions

View File

@@ -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))