Make TryGetComponent output nullable (#2905)

* Make TryGetComponent output nullable

* figs

* ah. there are more. Why do you fail me VS
This commit is contained in:
Leon Friedrich
2022-06-05 00:13:53 +02:00
committed by GitHub
parent 6c92d246c8
commit fc4eb664e2
10 changed files with 45 additions and 34 deletions
@@ -57,7 +57,7 @@ namespace Robust.Server.GameObjects
}
// Check if there was a player attached to the entity already...
if (EntityManager.TryGetComponent(uid, out ActorComponent actor))
if (EntityManager.TryGetComponent(uid, out ActorComponent? actor))
{
// If we're not forcing the attach, this fails.
if (!force)