]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixes Diona rooting not working since event based weightlessness refactor (#39893)
authorCentronias <me@centronias.com>
Wed, 27 Aug 2025 14:56:13 +0000 (07:56 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Aug 2025 14:56:13 +0000 (16:56 +0200)
* Fixes Diona rooting not working since event based weightlessness refactor

Caused by #37971

* pr comments

Content.Shared/Rootable/SharedRootableSystem.cs

index 9165c3c111780e08006fc4299430640f68ca422c..d646c7d97c953c7df7a338b9aedf7f89746b57f9 100644 (file)
@@ -104,6 +104,7 @@ public abstract class SharedRootableSystem : EntitySystem
 
         entity.Comp.Rooted = !entity.Comp.Rooted;
         _movementSpeedModifier.RefreshMovementSpeedModifiers(entity);
+        _gravity.RefreshWeightless(entity.Owner);
         Dirty(entity);
 
         if (entity.Comp.Rooted)
@@ -119,7 +120,6 @@ public abstract class SharedRootableSystem : EntitySystem
         {
             _alerts.ClearAlert(entity, entity.Comp.RootedAlert);
         }
-
         _audio.PlayPredicted(entity.Comp.RootSound, entity.Owner.ToCoordinates(), entity);
 
         return true;