Stop atmos spamming physics bodies awake
ApplyLinearImpulse already wakes it up so there's no point for this besides slammin physics.
This commit is contained in:
@@ -45,7 +45,6 @@ namespace Content.Server.Atmos.Components
|
||||
if (!Owner.TryGetComponent(out PhysicsComponent? physics))
|
||||
return;
|
||||
|
||||
physics.WakeBody();
|
||||
// TODO ATMOS stuns?
|
||||
|
||||
var transform = physics.Owner.Transform;
|
||||
@@ -62,7 +61,6 @@ namespace Content.Server.Atmos.Components
|
||||
&& (maxForce >= (MoveResist * MoveForcePushRatio)))
|
||||
|| (physics.BodyType == BodyType.Static && (maxForce >= (MoveResist * MoveForceForcePushRatio))))
|
||||
{
|
||||
|
||||
if (physics.Owner.HasComponent<IMobStateComponent>())
|
||||
{
|
||||
physics.BodyStatus = BodyStatus.InAir;
|
||||
|
||||
Reference in New Issue
Block a user