Fix for climb jank (#1803)
Player body was going to sleep, so now we spam WakeBody() at it.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user