mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user