Cleanup more SpriteComponent warnings (part 6) (#37607)
* 1 warning in MechAssemblyVisualizerSystem * 2 warnings in RecyclerVisualizerSystem * 1 warning in ClusterGrenadeVisualizerSystem * 2 warnings in BarSignSystem * 4 warnings in AlertControl * 1 warning in ToolSystem * 2 warnings in PinpointerSystem * 2 warnings in ClientSpriteMovementSystem * 2 warnings in OptionsVisualizerSystem * 1 warning in FlatpackSystem * 1 warning in ZombieSystem * 1 warning in StackSystem * 1 warning in MiningOverlay * 1 warning in FlippableClothingVisualizerSystem * Guard clause for MechAssemblyVisualizerSystem * Get SpriteSystem in AlertControl constructor
This commit is contained in:
@@ -9,6 +9,8 @@ namespace Content.Client.Tools
|
||||
{
|
||||
public sealed class ToolSystem : SharedToolSystem
|
||||
{
|
||||
[Dependency] private readonly SpriteSystem _sprite = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -36,7 +38,7 @@ namespace Content.Client.Tools
|
||||
{
|
||||
var current = multiple.Entries[multiple.CurrentEntry];
|
||||
if (current.Sprite != null)
|
||||
sprite.LayerSetSprite(0, current.Sprite);
|
||||
_sprite.LayerSetSprite((uid, sprite), 0, current.Sprite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user