EntityStorage placeable tweaks (#10344)
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user