Skip to content

Commit

Permalink
Fix crash when trying to restore flight to player who is not allowed …
Browse files Browse the repository at this point in the history
…to fly anymore (#43)
  • Loading branch information
Iru21 committed Aug 6, 2023
1 parent 889f96a commit c180a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1,4 +1,4 @@
kotlin.code.style = official
minecraftVersion = 1.17
pluginName = Authy
pluginVersion = 3.4.1
pluginVersion = 3.4.2
2 changes: 1 addition & 1 deletion src/main/kotlin/me/iru/process/PreLoginDataStore.kt
Expand Up @@ -31,7 +31,7 @@ object PreLoginDataStore {
}
p.fireTicks = fireTicks[p.uniqueId] ?: 0
fireTicks.remove(p.uniqueId)
p.isFlying = flyingState[p.uniqueId] ?: false
p.isFlying = if(p.allowFlight) flyingState[p.uniqueId] == true else false
flyingState.remove(p.uniqueId)
}

Expand Down

0 comments on commit c180a0e

Please sign in to comment.