Skip to content

Commit

Permalink
Improvement: Wardrobe Keybinds in Favorite Mode (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored Aug 12, 2024
1 parent c309218 commit 4e0ecc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e0ecc5

Please sign in to comment.