AppearanceComponent API Changes (#5446)

This commit is contained in:
Acruid
2021-11-22 23:22:59 -08:00
committed by GitHub
parent c8acba0ba7
commit fa0ec5cbd9
116 changed files with 87 additions and 97 deletions

View File

@@ -36,7 +36,7 @@ namespace Content.Server.Labels
{
_itemSlotsSystem.AddItemSlot(uid, component.Name, component.LabelSlot);
if (!EntityManager.TryGetComponent(uid, out SharedAppearanceComponent appearance))
if (!EntityManager.TryGetComponent(uid, out AppearanceComponent appearance))
return;
appearance.SetData(PaperLabelVisuals.HasLabel, false);
@@ -92,7 +92,7 @@ namespace Content.Server.Labels
if (args.Container.ID != label.LabelSlot.ID)
return;
if (!EntityManager.TryGetComponent(uid, out SharedAppearanceComponent appearance))
if (!EntityManager.TryGetComponent(uid, out AppearanceComponent appearance))
return;
appearance.SetData(PaperLabelVisuals.HasLabel, label.LabelSlot.HasItem);