From 291cd71aa5652a6ebf23807d027503bb3308ad3f Mon Sep 17 00:00:00 2001 From: jacky Date: Tue, 1 Jun 2021 12:47:34 -0400 Subject: [PATCH] Fixed jumping in air bug --- traits/jump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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