Fix various bugs with construction (#446)

This commit is contained in:
Ephememory
2019-11-21 17:46:37 -05:00
committed by Pieter-Jan Briers
parent 0595088409
commit 94c00dda95
4 changed files with 24 additions and 12 deletions

View File

@@ -91,7 +91,16 @@ namespace Content.Server.GameObjects.Components.Construction
{
Prototype = prototype;
Stage = 1;
Sprite.AddLayerWithSprite(prototype.Stages[1].Icon);
if(prototype.Stages[1].Icon != null)
{
Sprite.AddLayerWithSprite(prototype.Stages[1].Icon);
}
else
{
Sprite.AddLayerWithSprite(prototype.Icon);
}
}
bool TryProcessStep(ConstructionStep step, IEntity slapped)