Fixes Diona rooting not working since event based weightlessness refactor (#39893)

* Fixes Diona rooting not working since event based weightlessness refactor

Caused by #37971

* pr comments
This commit is contained in:
Centronias 2025-08-27 07:56:13 -07:00 committed by Vanessa
parent 66ada0ed93
commit 4a3d79faa0
1 changed files with 1 additions and 1 deletions

View File

@ -107,6 +107,7 @@ public abstract class SharedRootableSystem : EntitySystem
if (TryComp<MovedByPressureComponent>(entity, out var moved)) // Delta-V - Prevent spacewind
moved.Enabled = !entity.Comp.Rooted;
_movementSpeedModifier.RefreshMovementSpeedModifiers(entity);
_gravity.RefreshWeightless(entity.Owner);
Dirty(entity);
if (entity.Comp.Rooted)
@ -122,7 +123,6 @@ public abstract class SharedRootableSystem : EntitySystem
{
_alerts.ClearAlert(entity, entity.Comp.RootedAlert);
}
_audio.PlayPredicted(entity.Comp.RootSound, entity.Owner.ToCoordinates(), entity);
return true;