diff --git a/traits/jump.py b/traits/jump.py index 9746876a..be893fa9 100644 --- a/traits/jump.py +++ b/traits/jump.py @@ -8,7 +8,7 @@ def __init__(self, entity): def jump(self, jumping): if jumping: - if not self.entity.inAir and not self.entity.inJump: # redundant check + if self.entity.onGround: self.entity.sound.play_sfx(self.entity.sound.jump) self.entity.vel.y = self.verticalSpeed self.entity.inAir = True