Fix ClimbSystem removing the climbing fixture when it still has contacts (#24756)
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
using System.Numerics;
|
|
||||||
using Content.Shared.ActionBlocker;
|
using Content.Shared.ActionBlocker;
|
||||||
using Content.Shared.Body.Components;
|
using Content.Shared.Body.Components;
|
||||||
using Content.Shared.Body.Part;
|
using Content.Shared.Body.Part;
|
||||||
@@ -13,7 +12,6 @@ using Content.Shared.Hands.Components;
|
|||||||
using Content.Shared.IdentityManagement;
|
using Content.Shared.IdentityManagement;
|
||||||
using Content.Shared.Interaction;
|
using Content.Shared.Interaction;
|
||||||
using Content.Shared.Movement.Events;
|
using Content.Shared.Movement.Events;
|
||||||
using Content.Shared.Movement.Systems;
|
|
||||||
using Content.Shared.Physics;
|
using Content.Shared.Physics;
|
||||||
using Content.Shared.Popups;
|
using Content.Shared.Popups;
|
||||||
using Content.Shared.Stunnable;
|
using Content.Shared.Stunnable;
|
||||||
@@ -353,7 +351,8 @@ public sealed partial class ClimbSystem : VirtualController
|
|||||||
{
|
{
|
||||||
if (args.OurFixtureId != ClimbingFixtureName
|
if (args.OurFixtureId != ClimbingFixtureName
|
||||||
|| !component.IsClimbing
|
|| !component.IsClimbing
|
||||||
|| component.NextTransition != null)
|
|| component.NextTransition != null
|
||||||
|
|| args.OurFixture.Contacts.Count > 1)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user