Revert "Purge uses of TransformComponent.Anchored.set. Also adds parentheses." (#35332)
This commit is contained in:
@@ -189,7 +189,7 @@ public sealed partial class BlockingSystem : EntitySystem
|
||||
}
|
||||
|
||||
//Don't allow someone to block if they're somehow not anchored.
|
||||
_transformSystem.AnchorEntity((user, xform));
|
||||
_transformSystem.AnchorEntity(user, xform);
|
||||
if (!xform.Anchored)
|
||||
{
|
||||
CantBlockError(user);
|
||||
@@ -259,7 +259,7 @@ public sealed partial class BlockingSystem : EntitySystem
|
||||
&& TryComp<PhysicsComponent>(user, out var physicsComponent))
|
||||
{
|
||||
if (xform.Anchored)
|
||||
_transformSystem.Unanchor((user, xform));
|
||||
_transformSystem.Unanchor(user, xform);
|
||||
|
||||
_actionsSystem.SetToggled(component.BlockingToggleActionEntity, false);
|
||||
_fixtureSystem.DestroyFixture(user, BlockingComponent.BlockFixtureID, body: physicsComponent);
|
||||
|
||||
Reference in New Issue
Block a user