From 91696399403c16e1c55dec1ffa646b2aa120c90a Mon Sep 17 00:00:00 2001 From: KingsDev <63374258+KingsMMA@users.noreply.github.com> Date: Sat, 7 Dec 2024 22:31:58 +1000 Subject: [PATCH] Updated README to reflect change --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3a4a643..a0b35c3 100644 --- a/README.md +++ b/README.md @@ -339,6 +339,9 @@ You can, of course, also implement GUIs for other inventory types: val dropperGui = gui(Component.text("Title"), 9, InventoryType.DROPPER) { // You can also set multiple indexes at once set(listOf(1, 3, 4, 5, 7), ItemStack(Material.GRAY_STAINED_GLASS_PANE)) + + // You can also cancel all clicks that occur while the GUI is open + onClick { isCancelled = true } } player.openInventory(dropperGui) ```