fix: possible two clicks from one click event

This commit is contained in:
Jacob
2025-07-02 19:55:14 +08:00
committed by Linnea Gräf
parent 11317d351a
commit 561a9dd023

View File

@@ -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)
}
}