Update content for .Owner culling (#14185)
This commit is contained in:
@@ -173,7 +173,7 @@ public sealed partial class BlockingSystem : EntitySystem
|
||||
}
|
||||
|
||||
//Don't allow someone to block if they're somehow not anchored.
|
||||
_transformSystem.AnchorEntity(xform);
|
||||
_transformSystem.AnchorEntity(user, xform);
|
||||
if (!xform.Anchored)
|
||||
{
|
||||
CantBlockError(user);
|
||||
@@ -238,7 +238,7 @@ public sealed partial class BlockingSystem : EntitySystem
|
||||
&& TryComp<PhysicsComponent>(user, out var physicsComponent))
|
||||
{
|
||||
if (xform.Anchored)
|
||||
_transformSystem.Unanchor(xform);
|
||||
_transformSystem.Unanchor(user, xform);
|
||||
|
||||
_actionsSystem.SetToggled(component.BlockingToggleAction, false);
|
||||
_fixtureSystem.DestroyFixture(user, BlockingComponent.BlockFixtureID, body: physicsComponent);
|
||||
|
||||
@@ -73,7 +73,7 @@ public sealed class FollowerSystem : EntitySystem
|
||||
followedComp.Following.Add(follower);
|
||||
|
||||
var xform = Transform(follower);
|
||||
_transform.SetParent(xform, entity);
|
||||
_transform.SetParent(follower, xform, entity);
|
||||
xform.LocalPosition = Vector2.Zero;
|
||||
xform.LocalRotation = Angle.Zero;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Content.Shared.Tabletop
|
||||
|
||||
// Move the entity and dirty it (we use the map ID from the entity so noone can try to be funny and move the item to another map)
|
||||
var transform = EntityManager.GetComponent<TransformComponent>(msg.MovedEntityUid);
|
||||
_transforms.SetParent(transform, _mapMan.GetMapEntityId(transform.MapID));
|
||||
_transforms.SetParent(msg.MovedEntityUid, transform, _mapMan.GetMapEntityId(transform.MapID));
|
||||
_transforms.SetLocalPositionNoLerp(transform, msg.Coordinates.Position);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user