Fixes the storagecomponent amount not being implemented (#2177)

This commit is contained in:
Paul Ritter
2020-10-05 21:28:06 +02:00
committed by GitHub
parent 68c466ce2b
commit cc886518b1

View File

@@ -54,7 +54,10 @@ namespace Content.Server.GameObjects.Components.Items.Storage
continue;
}
storage.Insert(_entityManager.SpawnEntity(storageItem.PrototypeName, Owner.Transform.Coordinates));
for (var i = 0; i < storageItem.Amount; i++)
{
storage.Insert(_entityManager.SpawnEntity(storageItem.PrototypeName, Owner.Transform.Coordinates));
}
if (!string.IsNullOrEmpty(storageItem.GroupId)) alreadySpawnedGroups.Add(storageItem.GroupId);
}
}