* Revert "Fix chat bubbles (#25643)" This reverts commit23d2c4d924. * Revert "Fixes obsolete Transform warnings in Content. (#25256)" This reverts commitf284b43ff6.
This commit is contained in:
@@ -462,7 +462,7 @@ public sealed partial class NPCSteeringSystem : SharedNPCSteeringSystem
|
||||
}
|
||||
|
||||
var targetPos = steering.Coordinates.ToMap(EntityManager, _transform);
|
||||
var ourPos = _transform.GetMapCoordinates((uid, xform));
|
||||
var ourPos = xform.MapPosition;
|
||||
|
||||
PrunePath(uid, ourPos, targetPos.Position - ourPos.Position, result.Path);
|
||||
steering.CurrentPath = new Queue<PathPoly>(result.Path);
|
||||
|
||||
@@ -369,7 +369,7 @@ public sealed class NPCUtilitySystem : EntitySystem
|
||||
if (compQuery.Components.Count == 0)
|
||||
return;
|
||||
|
||||
var mapPos = _transform.GetMapCoordinates(owner);
|
||||
var mapPos = _xformQuery.GetComponent(owner).MapPosition;
|
||||
_compTypes.Clear();
|
||||
var i = -1;
|
||||
EntityPrototype.ComponentRegistryEntry compZero = default!;
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Content.Server.NPC.Systems;
|
||||
public sealed partial class NpcFactionSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly EntityLookupSystem _lookup = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _xformSystem = default!;
|
||||
[Dependency] private readonly IPrototypeManager _protoManager = default!;
|
||||
|
||||
private ISawmill _sawmill = default!;
|
||||
@@ -154,7 +153,7 @@ public sealed partial class NpcFactionSystem : EntitySystem
|
||||
if (!xformQuery.TryGetComponent(entity, out var entityXform))
|
||||
yield break;
|
||||
|
||||
foreach (var ent in _lookup.GetEntitiesInRange<NpcFactionMemberComponent>(_xformSystem.GetMapCoordinates((entity, entityXform)), range))
|
||||
foreach (var ent in _lookup.GetEntitiesInRange<NpcFactionMemberComponent>(entityXform.MapPosition, range))
|
||||
{
|
||||
if (ent.Owner == entity)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user