Skip to content

Commit

Permalink
Break out of pause loop when climbing is canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
cm8263 committed Sep 28, 2022
1 parent c15bd1e commit 8ee5e7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Client/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ internal async void OnClimbLadder(int networkId, ClimbingDirection direction)
ped.IsPositionFrozen = true;

_climbingLadder = ladder;
_pauseClimbing = false;

Tick += ClimbingTick;

Expand Down Expand Up @@ -564,6 +565,7 @@ internal async Task ClimbingTick()
{
TriggerServerEvent("Inferno-Collection:Server:Ladders:FinishedClimbing", _climbingLadder.NetworkId);

_pauseClimbing = false;
_climbingLadder = null;

Tick -= ClimbingTick;
Expand Down

0 comments on commit 8ee5e7f

Please sign in to comment.