* Revert "Fix chat bubbles (#25643)" This reverts commit23d2c4d924. * Revert "Fixes obsolete Transform warnings in Content. (#25256)" This reverts commitf284b43ff6.
This commit is contained in:
@@ -34,7 +34,6 @@ namespace Content.Server.Guardian
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly BodySystem _bodySystem = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _xformSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -212,7 +211,7 @@ namespace Content.Server.Guardian
|
||||
var hostXform = Transform(args.Args.Target.Value);
|
||||
var host = EnsureComp<GuardianHostComponent>(args.Args.Target.Value);
|
||||
// Use map position so it's not inadvertantly parented to the host + if it's in a container it spawns outside I guess.
|
||||
var guardian = Spawn(component.GuardianProto, _xformSystem.GetMapCoordinates(hostXform));
|
||||
var guardian = Spawn(component.GuardianProto, hostXform.MapPosition);
|
||||
|
||||
_container.Insert(guardian, host.GuardianContainer);
|
||||
host.HostedGuardian = guardian;
|
||||
|
||||
Reference in New Issue
Block a user