More nullable component fixes (#8659)

This commit is contained in:
Pieter-Jan Briers
2022-06-05 05:22:26 +02:00
committed by GitHub
parent 8e615c743a
commit cb4d5f3e59
4 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ namespace Content.MapRenderer.Painters
continue;
}
if (!_cEntityManager.TryGetComponent(entity, out SpriteComponent sprite))
if (!_cEntityManager.TryGetComponent(entity, out SpriteComponent? sprite))
{
throw new InvalidOperationException(
$"No sprite component found on an entity for which a server sprite component exists. Prototype id: {prototype.ID}");