EntityStorage placeable tweaks (#10344)
This commit is contained in:
parent
4e6600a304
commit
f511343220
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue