From cc886518b136dd4fb78c1d4232c4596da7660cbd Mon Sep 17 00:00:00 2001 From: Paul Ritter Date: Mon, 5 Oct 2020 21:28:06 +0200 Subject: [PATCH] Fixes the storagecomponent amount not being implemented (#2177) --- .../Components/Items/Storage/StorageFillComponent.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs index 00c1bea23b..3da7723835 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs @@ -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); } }