Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -26,12 +26,12 @@ namespace Content.Server.Chemistry.ReactionEffects
|
||||
/// </summary>
|
||||
[DataField("maxScale")] private float _maxScale = 1;
|
||||
|
||||
public void React(IEntity solutionEntity, double intensity)
|
||||
public void React(IEntity? solutionEntity, double intensity)
|
||||
{
|
||||
var floatIntensity = (float)intensity;
|
||||
var floatIntensity = (float) intensity;
|
||||
if (solutionEntity == null)
|
||||
return;
|
||||
if(!solutionEntity.TryGetComponent(out SolutionContainerComponent solution))
|
||||
if (!solutionEntity.HasComponent<SolutionContainerComponent>())
|
||||
return;
|
||||
|
||||
//Handle scaling
|
||||
|
||||
Reference in New Issue
Block a user