Skip to content

Commit 291cd71

Browse files
committed
Fixed jumping in air bug
1 parent 750503d commit 291cd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

traits/jump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, entity):
88

99
def jump(self, jumping):
1010
if jumping:
11-
if not self.entity.inAir and not self.entity.inJump: # redundant check
11+
if self.entity.onGround:
1212
self.entity.sound.play_sfx(self.entity.sound.jump)
1313
self.entity.vel.y = self.verticalSpeed
1414
self.entity.inAir = True

0 commit comments

Comments
 (0)