Skip to content

Commit 3c7c27a

Browse files
authored
Merge pull request #36 from SLNE-Development/fix/fix-trophy-api
fix: correct double jump logic to properly handle parkour state in Do…
2 parents 979461d + c7b36b4 commit 3c7c27a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/kotlin/dev/slne/surf/lobby/listener/DoubleJumpListener.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ object DoubleJumpListener : Listener {
2626
return
2727
}
2828

29-
if (parkourHook && ParkourHook.isInParkour(player)) 7
29+
if (parkourHook && ParkourHook.isInParkour(player)) {
30+
return
31+
}
3032

3133
val now = System.currentTimeMillis()
3234
val last = lastJump[player.uniqueId]

0 commit comments

Comments
 (0)