Skip to content

Commit

Permalink
Yes another oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Dec 25, 2023
1 parent ca4e6c7 commit 8e0043e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Shared/_NF/Clothing/Systems/EmitsSoundOnMoveSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ private void UpdateSound(EntityUid uid, EmitsSoundOnMoveComponent component)
// If this entity is worn by another entity, use that entity's coordinates
var coordinates = isWorn ? Transform(parent).Coordinates : xform.Coordinates;
var distanceNeeded = (isWorn && _moverQuery.TryGetComponent(parent, out var mover) && mover.Sprinting)
? 2f // The parent is a mob that is currently sprinting
: 1.5f; // The parent is not a mob or is not sprinting
? 1.5f // The parent is a mob that is currently sprinting
: 2f; // The parent is not a mob or is not sprinting

if (!coordinates.TryDistance(EntityManager, component.LastPosition, out var distance) || distance > distanceNeeded)
component.SoundDistance = distanceNeeded;
Expand Down

0 comments on commit 8e0043e

Please sign in to comment.