Fix for climb jank (#1803)

Player body was going to sleep, so now we spam WakeBody() at it.
This commit is contained in:
nuke
2020-08-19 20:21:15 -04:00
committed by GitHub
parent 45380c129b
commit 322e38b173
2 changed files with 8 additions and 8 deletions

View File

@@ -1,15 +1,8 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.GameObjects.Components;
using Content.Shared.Physics;
using Content.Shared.Maps;
using Robust.Shared.IoC;
using Robust.Shared.Interfaces.GameObjects;
using Content.Shared.GameObjects.Components.Movement;
using Content.Shared.GameObjects.EntitySystems;
using System.Collections.Generic;
using Robust.Shared.Physics;
using System.Diagnostics;
namespace Content.Server.GameObjects.Components.Movement
{
@@ -61,6 +54,11 @@ namespace Content.Server.GameObjects.Components.Movement
}
}
if (IsClimbing)
{
Body.WakeBody();
}
if (!IsOnClimbableThisFrame && IsClimbing && _climbController == null)
{
IsClimbing = false;