From ad96f3f3b8d946001d77258668f6b4e8b959c1dd Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Tue, 29 Sep 2020 22:27:24 +0200 Subject: [PATCH] Update readme.md --- readme.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 270eadb6..0a33c763 100644 --- a/readme.md +++ b/readme.md @@ -174,10 +174,7 @@ val gui = kSpigot.inventoryGUI(InventoryGUIType.FIVE_BY_NINE) { // a button with a custom callback button(Slots.RowThreeSlotFive, ItemStack(Material.REPEATER)) { - it.bukkitEvent.inventory.setItem( - Slots.RowTwoSlotFive, - ItemStack(Material.values().random(), (1..64).random()) - ) + it.gui[Slots.RowTwoSlotFive] = ItemStack(Material.values().random(), (1..64).random() } // a slot where player interaction is permitted