Skip to content

Commit

Permalink
fix(input): disable smooth turn when input blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira committed Dec 3, 2023
1 parent 08f0536 commit 9478182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/input/input_patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static bool GetAxis2D(ref Vector2 __result, int xAxisActionId, int yAxisActionId
[HarmonyPatch(typeof(PlayerFirstPersonController), nameof(PlayerFirstPersonController.Move))]
static void Move(PlayerFirstPersonController __instance)
{
if (!__instance.m_IsGrounded)
if (!__instance.m_IsGrounded || InputHandler.instance.playerInputBlocked || InputHandler.instance.playerInputBlockedOverride)
{
return;
}
Expand Down

0 comments on commit 9478182

Please sign in to comment.