From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:23:21 +0000 (+1100) Subject: Fix getting stuck on tables (#21981) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b08c4edd551408e518a84b340d9df72ef817f811;p=space-station-14.git Fix getting stuck on tables (#21981) --- diff --git a/Content.Shared/Climbing/Systems/ClimbSystem.cs b/Content.Shared/Climbing/Systems/ClimbSystem.cs index c960b8e619..6f6672e951 100644 --- a/Content.Shared/Climbing/Systems/ClimbSystem.cs +++ b/Content.Shared/Climbing/Systems/ClimbSystem.cs @@ -355,13 +355,14 @@ public sealed partial class ClimbSystem : VirtualController return; } - foreach (var fixture in args.OurFixture.Contacts.Keys) + foreach (var otherFixture in args.OurFixture.Contacts.Keys) { - if (fixture == args.OtherFixture) + // If it's the other fixture then ignore em + if (otherFixture == args.OtherFixture) continue; // If still colliding with a climbable, do not stop climbing - if (HasComp(args.OtherEntity)) + if (HasComp(otherFixture.Owner)) return; }