mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user