From 4e0ecc529f3616d9f1041392c79b6d2dbf303753 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Mon, 12 Aug 2024 09:43:52 +0200 Subject: Improvement: Wardrobe Keybinds in Favorite Mode (#2331) --- .../skyhanni/features/inventory/wardrobe/CustomWardrobeKeybinds.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobeKeybinds.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobeKeybinds.kt index 502255afa..a2fdd21ff 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobeKeybinds.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobeKeybinds.kt @@ -32,7 +32,7 @@ object CustomWardrobeKeybinds { @SubscribeEvent fun onGui(event: GuiKeyPressEvent) { if (!isEnabled()) return - val slots = WardrobeAPI.slots.filter { it.isInCurrentPage() } + val slots = WardrobeAPI.slots.filter { it.isInCurrentPage() }.filterNot { config.onlyFavorites && !it.favorite } for ((index, key) in keybinds.withIndex()) { if (!key.isKeyHeld()) continue -- cgit