Merge pull request #227 from Moneyl/construction-null-step-crash-fix

Fixes server crash due to null construction step
This commit is contained in:
Pieter-Jan Briers
2019-05-18 23:24:55 +02:00
committed by GitHub

View File

@@ -93,6 +93,10 @@ namespace Content.Server.GameObjects.Components.Construction
bool TryProcessStep(ConstructionStep step, IEntity slapped)
{
if (step == null)
{
return false;
}
var sound = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<AudioSystem>();
switch (step)