From f2977dd436b2e45a8deb0e5bb800dfb6826ab352 Mon Sep 17 00:00:00 2001 From: Exp Date: Fri, 25 Sep 2020 13:49:59 +0200 Subject: [PATCH] Fix StorageFill quitting early (#2130) --- .../Components/Items/Storage/StorageFillComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs index 0323fe730c..00c1bea23b 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/StorageFillComponent.cs @@ -46,7 +46,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage foreach (var storageItem in _contents) { if (string.IsNullOrEmpty(storageItem.PrototypeName)) continue; - if (string.IsNullOrEmpty(storageItem.GroupId) && alreadySpawnedGroups.Contains(storageItem.GroupId)) continue; + if (!string.IsNullOrEmpty(storageItem.GroupId) && alreadySpawnedGroups.Contains(storageItem.GroupId)) continue; if (storageItem.SpawnProbability != 1f && !random.Prob(storageItem.SpawnProbability)) @@ -55,7 +55,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage } storage.Insert(_entityManager.SpawnEntity(storageItem.PrototypeName, Owner.Transform.Coordinates)); - if(string.IsNullOrEmpty(storageItem.GroupId)) alreadySpawnedGroups.Add(storageItem.GroupId); + if (!string.IsNullOrEmpty(storageItem.GroupId)) alreadySpawnedGroups.Add(storageItem.GroupId); } }