Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -14,11 +14,11 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
|
||||
public override Outcome Execute(float frameTime)
|
||||
{
|
||||
if (!_owner.TryGetComponent(out HandsComponent handsComponent))
|
||||
if (!_owner.TryGetComponent(out HandsComponent? handsComponent))
|
||||
{
|
||||
return Outcome.Failed;
|
||||
}
|
||||
|
||||
|
||||
foreach (var item in handsComponent.GetAllHeldItems())
|
||||
{
|
||||
handsComponent.Drop(item.Owner);
|
||||
|
||||
Reference in New Issue
Block a user