StackOverflowError fix and R7
This commit is contained in:
@@ -17,7 +17,7 @@ val GITHUB_URL = "https://github.com/bluefireoly/KSpigot"
|
||||
*/
|
||||
|
||||
group = "net.axay"
|
||||
version = "1.16.3_R6"
|
||||
version = "1.16.3_R7"
|
||||
|
||||
description = "A Kotlin API for the Minecraft Server Software \"Spigot\"."
|
||||
|
||||
|
@@ -107,11 +107,9 @@ class InventoryGUIShared<T : ForInventory>(
|
||||
inventoryGUIData: InventoryGUIData<T>
|
||||
) : InventoryGUI<T>(inventoryGUIData) {
|
||||
|
||||
override val bukkitInventory by lazy {
|
||||
val inv = data.inventoryType.createBukkitInv(null, data.title)
|
||||
loadPage(DEFAULT_PAGE)
|
||||
return@lazy inv
|
||||
}
|
||||
override val bukkitInventory = data.inventoryType.createBukkitInv(null, data.title)
|
||||
|
||||
init { loadPage(DEFAULT_PAGE) }
|
||||
|
||||
override fun isThisInv(inventory: Inventory) = inventory == bukkitInventory
|
||||
|
||||
|
Reference in New Issue
Block a user