Update content for .Owner culling (#14185)

This commit is contained in:
metalgearsloth
2023-02-22 12:45:32 +11:00
committed by GitHub
parent c1d31e1666
commit 2e25128770
9 changed files with 11 additions and 10 deletions

View File

@@ -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);