Fix shift-clicking into GUIs
This commit is contained in:
@@ -19,7 +19,7 @@ object GUIHolder : AutoCloseable {
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
listen<InventoryClickEvent> {
|
listen<InventoryClickEvent> {
|
||||||
val clickedInv = it.clickedInventory ?: return@listen
|
val clickedInv = it.inventory
|
||||||
val gui = registered[clickedInv] ?: return@listen
|
val gui = registered[clickedInv] ?: return@listen
|
||||||
val player = it.playerOrCancel ?: return@listen
|
val player = it.playerOrCancel ?: return@listen
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user