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 GitHub
parent ae199ba314
commit 973689425c

View 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;