Removal of TrySpawn* methods, update submodule.

This commit is contained in:
Pieter-Jan Briers
2019-07-07 22:24:44 +02:00
parent 8ff4c22f42
commit 558f6ab8a5
9 changed files with 11 additions and 11 deletions

View File

@@ -83,12 +83,12 @@ namespace Content.Server.GameObjects.Components.Construction
if (prototype.Stages.Count == 2)
{
// Exactly 2 stages, so don't make an intermediate frame.
var ent = _serverEntityManager.ForceSpawnEntityAt(prototype.Result, loc);
var ent = _serverEntityManager.SpawnEntityAt(prototype.Result, loc);
ent.Transform.LocalRotation = angle;
}
else
{
var frame = _serverEntityManager.ForceSpawnEntityAt("structureconstructionframe", loc);
var frame = _serverEntityManager.SpawnEntityAt("structureconstructionframe", loc);
var construction = frame.GetComponent<ConstructionComponent>();
construction.Init(prototype);
frame.Transform.LocalRotation = angle;