Merge pull request #227 from Moneyl/construction-null-step-crash-fix
Fixes server crash due to null construction step
This commit is contained in:
@@ -93,6 +93,10 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
|
|
||||||
bool TryProcessStep(ConstructionStep step, IEntity slapped)
|
bool TryProcessStep(ConstructionStep step, IEntity slapped)
|
||||||
{
|
{
|
||||||
|
if (step == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
var sound = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<AudioSystem>();
|
var sound = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<AudioSystem>();
|
||||||
|
|
||||||
switch (step)
|
switch (step)
|
||||||
|
|||||||
Reference in New Issue
Block a user