Fix throwing objects causing pushback on the player who threw them in a not weightless environment (#40335)

* Fix

* Update Content.Shared/Gravity/SharedGravitySystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Update

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
Winkarst-cpu 2025-09-13 22:51:13 +03:00 committed by Vanessa
parent e7711b8000
commit 5244330d58
1 changed files with 2 additions and 2 deletions

View File

@ -233,12 +233,12 @@ public abstract partial class SharedGravitySystem : EntitySystem
private void OnThrowerImpulse(Entity<GravityAffectedComponent> entity, ref ThrowerImpulseEvent args)
{
args.Push = true;
args.Push |= IsWeightless((entity.Owner, entity.Comp));
}
private void OnShooterImpulse(Entity<GravityAffectedComponent> entity, ref ShooterImpulseEvent args)
{
args.Push = true;
args.Push |= IsWeightless((entity.Owner, entity.Comp));
}
}