Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Nov 23, 2024
1 parent f6d628d commit 4a205f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Content.Shared/Body/Systems/SharedBodySystem.Parts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@
using Robust.Shared.Utility;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Shared.Buckle;


namespace Content.Shared.Body.Systems;

public partial class SharedBodySystem
{
[Dependency] private readonly RandomHelperSystem _randomHelper = default!;
[Dependency] private readonly InventorySystem _inventorySystem = default!;
[Dependency] private readonly SharedBuckleSystem _buckle = default!; //WD EDIT

private void InitializeParts()
{
// TODO: This doesn't handle comp removal on child ents.
Expand Down Expand Up @@ -209,7 +213,8 @@ private void RemoveLeg(Entity<BodyPartComponent> legEnt, Entity<BodyComponent?>
bodyEnt.Comp.LegEntities.Remove(legEnt);
UpdateMovementSpeed(bodyEnt);
Dirty(bodyEnt, bodyEnt.Comp);
Standing.Down(bodyEnt);
if (!_buckle.IsBuckled(bodyEnt)) // WD EDIT
Standing.Down(bodyEnt);
}
}

Expand Down

0 comments on commit 4a205f4

Please sign in to comment.