diff options
| author | Jacob <admin@kath.lol> | 2025-07-02 19:55:14 +0800 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-07-03 14:51:24 +0200 |
| commit | 561a9dd023b380f88ac6fe6b33ca69d0d44ac116 (patch) | |
| tree | 5659613e8e8131f44cf482903aada7ee9d830e6c /src/main/kotlin | |
| parent | 11317d351a34baecc03091e38fdc7f6598fa59aa (diff) | |
| download | Firmament-561a9dd023b380f88ac6fe6b33ca69d0d44ac116.tar.gz Firmament-561a9dd023b380f88ac6fe6b33ca69d0d44ac116.tar.bz2 Firmament-561a9dd023b380f88ac6fe6b33ca69d0d44ac116.zip | |
fix: possible two clicks from one click event
Diffstat (limited to 'src/main/kotlin')
| -rw-r--r-- | src/main/kotlin/features/inventory/WardrobeKeybinds.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/kotlin/features/inventory/WardrobeKeybinds.kt b/src/main/kotlin/features/inventory/WardrobeKeybinds.kt index b44cf33..6e2b4a9 100644 --- a/src/main/kotlin/features/inventory/WardrobeKeybinds.kt +++ b/src/main/kotlin/features/inventory/WardrobeKeybinds.kt @@ -52,8 +52,11 @@ object WardrobeKeybinds : FirmamentFeature { val backPressed = event.matches(TConfig.changePageKeybind) || event.matches(TConfig.previousPage) val nextPressed = event.matches(TConfig.changePageKeybind) || event.matches(TConfig.nextPage) - if (backPressed && previousSlot.stack.item == Items.ARROW) previousSlot.clickLeftMouseButton(handler) - if (nextPressed && nextSlot.stack.item == Items.ARROW) nextSlot.clickLeftMouseButton(handler) + if (backPressed && previousSlot.stack.item == Items.ARROW) { + previousSlot.clickLeftMouseButton(handler) + } else if (nextPressed && nextSlot.stack.item == Items.ARROW) { + nextSlot.clickLeftMouseButton(handler) + } } |
