Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Content.Server.AI.Utility.Considerations.Clothing
|
||||
|
||||
foreach (var entity in context.GetState<EnumerableInventoryState>().GetValue())
|
||||
{
|
||||
if (!entity.TryGetComponent(out ClothingComponent clothingComponent))
|
||||
if (!entity.TryGetComponent(out ClothingComponent? clothingComponent))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user