EntityStorage placeable tweaks (#10344)

This commit is contained in:
Nemanja
2022-08-05 19:49:16 -04:00
committed by GitHub
parent 4e6600a304
commit f511343220

View File

@@ -357,12 +357,12 @@ public sealed class EntityStorageSystem : EntitySystem
} }
if (TryComp<PlaceableSurfaceComponent>(uid, out var surface)) if (TryComp<PlaceableSurfaceComponent>(uid, out var surface))
_placeableSurface.SetPlaceable(uid, true, surface); _placeableSurface.SetPlaceable(uid, component.Open, surface);
if (TryComp<AppearanceComponent>(uid, out var appearance)) if (TryComp<AppearanceComponent>(uid, out var appearance))
{ {
appearance.SetData(StorageVisuals.Open, component.Open); appearance.SetData(StorageVisuals.Open, component.Open);
appearance.SetData(StorageVisuals.HasContents, component.Contents.ContainedEntities.Count() > 0); appearance.SetData(StorageVisuals.HasContents, component.Contents.ContainedEntities.Any());
} }
} }
} }