Fix IEntity.TryGetComponent nullability signatures.

This means all invocations of TryGetComponent now need a nullable parameter because, well, the result can be null. that's the point.
This commit is contained in:
Pieter-Jan Briers
2020-08-20 15:31:18 +02:00
parent 1513389fc1
commit d4fc0517c4
17 changed files with 36 additions and 35 deletions

View File

@@ -388,7 +388,7 @@ namespace Robust.Server.Maps
{
foreach (var entity in Entities)
{
if (entity.TryGetComponent(out IMapGridComponent grid))
if (entity.TryGetComponent(out IMapGridComponent? grid))
{
var castGrid = (MapGrid) grid.Grid;
castGrid.GridEntityId = entity.Uid;