Fix a bunch of compiler warnings (#10518)
This commit is contained in:
@@ -22,6 +22,7 @@ namespace Content.Client.Storage.Visualizers
|
||||
[DataField("state_closed")]
|
||||
private string? _stateClosed;
|
||||
|
||||
[Obsolete("Subscribe to your component being initialised instead.")]
|
||||
public override void InitializeEntity(EntityUid entity)
|
||||
{
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(entity, out ISpriteComponent? sprite))
|
||||
@@ -40,6 +41,7 @@ namespace Content.Client.Storage.Visualizers
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete("Subscribe to AppearanceChangeEvent instead.")]
|
||||
public override void OnChangeData(AppearanceComponent component)
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
@@ -63,7 +65,7 @@ namespace Content.Client.Storage.Visualizers
|
||||
sprite.LayerSetState(StorageVisualLayers.Door, _stateOpen);
|
||||
sprite.LayerSetVisible(StorageVisualLayers.Door, true);
|
||||
}
|
||||
|
||||
|
||||
if (_stateBaseAlt != null)
|
||||
sprite.LayerSetState(0, _stateBaseAlt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user