Skip to content

Commit 1f6a503

Browse files
committed
fix: handleFalling check currentFrameTag
1 parent a741ad3 commit 1f6a503

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/dudes-core/src/core

packages/dudes-core/src/core/dude.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export class Dude {
287287
}
288288

289289
private handleFalling(): void {
290-
if (this.velocity.y > 0) {
290+
if (this.velocity.y > 0 && this.currentFrameTag !== DudesFrameTag.Fall) {
291291
this.playAnimation(DudesFrameTag.Fall)
292292
}
293293
}

0 commit comments

Comments
 (0)