Skip to content

Commit

Permalink
fix(bukkit): error on change gamemode on 1.8 servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 30, 2024
1 parent 856ea41 commit 21f5772
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class FeatureLevel(

@EventHandler
private fun onGameModeChange(event: PlayerGameModeChangeEvent) {
if (!isActive() || seeAsSpectator) return
if (!isActive() || !seeAsSpectator) return
val player = event.player
val user = event.player.user() ?: return
for (onlinePlayer in onlinePlayers.filter { it.uniqueId != user.uniqueId }) {
Expand Down

0 comments on commit 21f5772

Please sign in to comment.