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