Skip to content

Commit

Permalink
fix: ignore case for minecraft autocompletion (#4930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirada authored Dec 16, 2024
1 parent e5a0a17 commit 491543e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ParameterBuilder<T> private constructor(val name: String) {

fun useMinecraftAutoCompletion(): ParameterBuilder<T> {
autocompletionHandler = { begin, _ ->
mc.networkHandler?.playerList?.map { it.profile.name }?.filter { it.startsWith(begin) } ?: emptyList()
mc.networkHandler?.playerList?.map { it.profile.name }?.filter { it.startsWith(begin, true) } ?: emptyList()
}

return this
Expand Down

0 comments on commit 491543e

Please sign in to comment.