Update InventoryGUIButton.kt
This commit is contained in:
@@ -5,7 +5,7 @@ import org.bukkit.inventory.ItemStack
|
|||||||
|
|
||||||
open class InventoryGUIButton<T : ForInventory>(
|
open class InventoryGUIButton<T : ForInventory>(
|
||||||
private val icon: ItemStack,
|
private val icon: ItemStack,
|
||||||
val action: (InventoryGUIClickEvent<T>) -> Unit,
|
private val action: (InventoryGUIClickEvent<T>) -> Unit,
|
||||||
) : InventoryGUIElement<T>() {
|
) : InventoryGUIElement<T>() {
|
||||||
|
|
||||||
override fun getItemStack(slot: Int) = icon
|
override fun getItemStack(slot: Int) = icon
|
||||||
|
Reference in New Issue
Block a user