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 GitHub
parent 52a4e95651
commit 3aece8d46c

View File

@@ -228,12 +228,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));
}
}