Inline UID
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Content.Client.Kitchen.Visualizers
|
||||
public override void OnChangeData(AppearanceComponent component)
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
var sprite = IoCManager.Resolve<IEntityManager>().GetComponent<ISpriteComponent>(component.Owner.Uid);
|
||||
var sprite = IoCManager.Resolve<IEntityManager>().GetComponent<ISpriteComponent>(component.Owner);
|
||||
component.TryGetData(ReagentGrinderVisualState.BeakerAttached, out bool hasBeaker);
|
||||
sprite.LayerSetState(0, $"juicer{(hasBeaker ? "1" : "0")}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user