From 529639fdd0683066eadffe93473a300a2177c008 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:21:50 +0200 Subject: Backend: for each (#1725) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt | 4 +--- .../skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/commands') diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt index 6b96024ed..59b652f66 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt @@ -205,9 +205,7 @@ object PartyChatCommands { } } } else { - blacklist.forEach { - message += "\n§e$it" - } + blacklist.forEach { message += "\n§e$it" } } ChatUtils.chat(message) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt index e199a47fd..bf4428211 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt @@ -57,7 +57,8 @@ object PlayerTabComplete { return buildList { if (config.friends && PlayerCategory.FRIENDS !in ignored) { - FriendAPI.getAllFriends().filter { it.bestFriend || !config.onlyBestFriends } + FriendAPI.getAllFriends() + .filter { it.bestFriend || !config.onlyBestFriends } .forEach { add(it.name) } } -- cgit