Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtabjs authored Dec 11, 2023
1 parent c242259 commit 651738f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1726,10 +1726,9 @@ export class UI {
// --- controls y --------------------------------------------------------
// --- controls y --------------------------------------------------------

if (this.jumping === false && this.e.input.keyUp === true) {
if (this.e.input.keyUp === true) {
this.e.s.p("jump");
this.yspeed = -this.jumpHeight;
this.jumping = true;
this.peakHeight = this.player.position.y;
this.jumping = false;

Expand Down

0 comments on commit 651738f

Please sign in to comment.