Skip to content

Commit

Permalink
Cancel swap event for cinematic skip
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Dec 16, 2024
1 parent 8621557 commit 09bdc82
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class SkipCinematicAction(
plugin.listen<PlayerSwapHandItemsEvent>(listener) {
if (it.player.uniqueId != player.uniqueId) return@listen
player.setTemporalFrame(segment.endFrame)
it.isCancelled = true
}
}
}
Expand Down

0 comments on commit 09bdc82

Please sign in to comment.