Content update for ECS physics (#13291)
This commit is contained in:
@@ -5,6 +5,7 @@ using Content.Shared.Item;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Physics;
|
||||
using Robust.Shared.Physics.Components;
|
||||
using Robust.Shared.Physics.Systems;
|
||||
|
||||
namespace Content.Server.Disposal.Unit.Components
|
||||
{
|
||||
@@ -85,7 +86,7 @@ namespace Content.Server.Disposal.Unit.Components
|
||||
|
||||
if (_entMan.TryGetComponent(entity, out PhysicsComponent? physics))
|
||||
{
|
||||
physics.CanCollide = false;
|
||||
_entMan.System<SharedPhysicsSystem>().SetCanCollide(entity, false, body: physics);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user