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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -357,12 +357,12 @@ public sealed class EntityStorageSystem : EntitySystem
}
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))
{
appearance.SetData(StorageVisuals.Open, component.Open);
appearance.SetData(StorageVisuals.HasContents, component.Contents.ContainedEntities.Count() > 0);
appearance.SetData(StorageVisuals.HasContents, component.Contents.ContainedEntities.Any());
}
}
}