Engine update (#12307)
This commit is contained in:
@@ -105,7 +105,6 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Insert into next tube
|
// Insert into next tube
|
||||||
holderTransform.Coordinates = new EntityCoordinates(toUid, Vector2.Zero);
|
|
||||||
if (!to.Contents.Insert(holder.Owner))
|
if (!to.Contents.Insert(holder.Owner))
|
||||||
{
|
{
|
||||||
ExitDisposals(holderUid, holder, holderTransform);
|
ExitDisposals(holderUid, holder, holderTransform);
|
||||||
@@ -117,7 +116,6 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
|||||||
holder.PreviousTube = holder.CurrentTube;
|
holder.PreviousTube = holder.CurrentTube;
|
||||||
holder.PreviousDirection = holder.CurrentDirection;
|
holder.PreviousDirection = holder.CurrentDirection;
|
||||||
}
|
}
|
||||||
holderTransform.Coordinates = toTransform.Coordinates;
|
|
||||||
holder.CurrentTube = to;
|
holder.CurrentTube = to;
|
||||||
holder.CurrentDirection = to.NextDirection(holder);
|
holder.CurrentDirection = to.NextDirection(holder);
|
||||||
holder.StartingTime = 0.1f;
|
holder.StartingTime = 0.1f;
|
||||||
@@ -168,7 +166,8 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
|||||||
var destination = holder.CurrentDirection.ToVec();
|
var destination = holder.CurrentDirection.ToVec();
|
||||||
var newPosition = destination * progress;
|
var newPosition = destination * progress;
|
||||||
|
|
||||||
EntityManager.GetComponent<TransformComponent>(holder.Owner).Coordinates = origin.Offset(newPosition);
|
// This is some supreme shit code.
|
||||||
|
EntityManager.GetComponent<TransformComponent>(holder.Owner).Coordinates = origin.Offset(newPosition).WithEntityId(currentTube.Owner); ;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule RobustToolbox updated: df7933b890...03acded657
Reference in New Issue
Block a user