Fix a bunch of compiler warnings (#10518)

This commit is contained in:
Visne
2022-08-14 07:28:34 +02:00
committed by GitHub
parent 19ac6c0573
commit 58769634c7
89 changed files with 92 additions and 48 deletions

View File

@@ -13,8 +13,7 @@ namespace Content.Client.Atmos.EntitySystems;
public sealed class AtmosPipeAppearanceSystem : EntitySystem
{
[Dependency] private readonly IResourceCache _resCache = default!;
[Dependency] private readonly SubFloorHideSystem _subfloorSys = default!;
public override void Initialize()
{
base.Initialize();
@@ -65,7 +64,7 @@ public sealed class AtmosPipeAppearanceSystem : EntitySystem
// transform connected directions to local-coordinates
var connectedDirections = worldConnectedDirections.RotatePipeDirection(-Transform(uid).LocalRotation);
foreach (PipeConnectionLayer layerKey in Enum.GetValues(typeof(PipeConnectionLayer)))
{
if (!args.Sprite.LayerMapTryGet(layerKey, out var key))