From 2ebce56d4fa44fb12ec15a436feea6c43f7ecd8b Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Wed, 9 Oct 2024 08:14:16 -0230 Subject: Improvement: Add Suggestion Provider and guild support in tab complete (#2637) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt index 541eb323c..1e98b61e4 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt @@ -38,7 +38,7 @@ object GuildAPI { } } - fun isInGuild(name: String) = ProfileStorageData.playerSpecific?.guildMembers?.let { - name in it - } ?: false + fun isInGuild(name: String) = name in getAllMembers() + + fun getAllMembers() = ProfileStorageData.playerSpecific?.guildMembers ?: emptyList() } -- cgit