From f511343220bbfde16b1aa17de366aaad435b9fab Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Fri, 5 Aug 2022 19:49:16 -0400 Subject: [PATCH] EntityStorage placeable tweaks (#10344) --- Content.Server/Storage/EntitySystems/EntityStorageSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs b/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs index 792c9ecec7..bd3730ff93 100644 --- a/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs @@ -357,12 +357,12 @@ public sealed class EntityStorageSystem : EntitySystem } if (TryComp(uid, out var surface)) - _placeableSurface.SetPlaceable(uid, true, surface); + _placeableSurface.SetPlaceable(uid, component.Open, surface); if (TryComp(uid, out var appearance)) { appearance.SetData(StorageVisuals.Open, component.Open); - appearance.SetData(StorageVisuals.HasContents, component.Contents.ContainedEntities.Count() > 0); + appearance.SetData(StorageVisuals.HasContents, component.Contents.ContainedEntities.Any()); } } }