]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix throwing objects causing pushback on the player who threw them in a not weightles...
authorWinkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com>
Sat, 13 Sep 2025 19:51:13 +0000 (22:51 +0300)
committerGitHub <noreply@github.com>
Sat, 13 Sep 2025 19:51:13 +0000 (21:51 +0200)
* 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>
Content.Shared/Gravity/SharedGravitySystem.cs

index a8f1be828735f3c69b6622ef7c228489598e0c37..d9a0a70d940f535a5af586ef17e87f331e03bd5d 100644 (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));
     }
 }