Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -7,9 +7,9 @@ namespace Content.Server.AI.Utility
|
||||
{
|
||||
public static class UtilityAiHelpers
|
||||
{
|
||||
public static Blackboard GetBlackboard(IEntity entity)
|
||||
public static Blackboard? GetBlackboard(IEntity entity)
|
||||
{
|
||||
if (!entity.TryGetComponent(out AiControllerComponent aiControllerComponent))
|
||||
if (!entity.TryGetComponent(out AiControllerComponent? aiControllerComponent))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user