Skip to content

Commit

Permalink
Merge pull request #3487 from webaverse/tcm-NR-crouch-speed-bug
Browse files Browse the repository at this point in the history
Avatar runs faster when tried with naruto run in crouch mode bug
  • Loading branch information
Avaer Kazmer authored Aug 8, 2022
2 parents a2dc6de + 23feb2b commit 9474037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ class GameManager extends EventTarget {
}
const localPlayer = playersManager.getLocalPlayer();
const sprintMultiplier = (ioManager.keys.shift && !isCrouched) ?
(ioManager.keys.doubleTap ? 20 : 3)
(localPlayer.hasAction('narutoRun') ? 20 : 3)
:
((isSwimming && !isFlying) ? 5 - localPlayer.getAction('swim').swimDamping : 1);
speed *= sprintMultiplier;
Expand Down

0 comments on commit 9474037

Please sign in to comment.