From 4a205f4eb1a095064a9ea4fb47c89bb5593d2ef7 Mon Sep 17 00:00:00 2001 From: Spatison <137375981+Spatison@users.noreply.github.com> Date: Sat, 23 Nov 2024 22:17:23 +0300 Subject: [PATCH] fix test --- Content.Shared/Body/Systems/SharedBodySystem.Parts.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Body/Systems/SharedBodySystem.Parts.cs b/Content.Shared/Body/Systems/SharedBodySystem.Parts.cs index 2c6d128f63..aab777c91c 100644 --- a/Content.Shared/Body/Systems/SharedBodySystem.Parts.cs +++ b/Content.Shared/Body/Systems/SharedBodySystem.Parts.cs @@ -13,6 +13,8 @@ using Robust.Shared.Utility; using System.Diagnostics.CodeAnalysis; using System.Linq; +using Content.Shared.Buckle; + namespace Content.Shared.Body.Systems; @@ -20,6 +22,8 @@ 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. @@ -209,7 +213,8 @@ private void RemoveLeg(Entity legEnt, Entity bodyEnt.Comp.LegEntities.Remove(legEnt); UpdateMovementSpeed(bodyEnt); Dirty(bodyEnt, bodyEnt.Comp); - Standing.Down(bodyEnt); + if (!_buckle.IsBuckled(bodyEnt)) // WD EDIT + Standing.Down(bodyEnt); } }