From 13a89944c8937ce140523decdfffbccb1b218fd3 Mon Sep 17 00:00:00 2001 From: l4zs Date: Sun, 8 Aug 2021 20:46:36 +0200 Subject: [PATCH] fix some shift clicks not calling GUIClickEvent --- src/main/kotlin/net/axay/kspigot/gui/GUIHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/axay/kspigot/gui/GUIHolder.kt b/src/main/kotlin/net/axay/kspigot/gui/GUIHolder.kt index b8a7d281..4f505e06 100644 --- a/src/main/kotlin/net/axay/kspigot/gui/GUIHolder.kt +++ b/src/main/kotlin/net/axay/kspigot/gui/GUIHolder.kt @@ -77,7 +77,7 @@ object GUIHolder : AutoCloseable { } private val InventoryAction.isGUIClick - get() = this == InventoryAction.PICKUP_ALL || this == InventoryAction.PICKUP_HALF + get() = this == InventoryAction.PICKUP_ALL || this == InventoryAction.PICKUP_HALF || this == InventoryAction.PICKUP_SOME || this == InventoryAction.PICKUP_ONE private val InventoryInteractEvent.playerOrCancel: Player? get() = (whoClicked as? Player) ?: kotlin.run { isCancelled = true