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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user