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:
parent
66ada0ed93
commit
4a3d79faa0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue