StackOverflowError fix and R7

This commit is contained in:
bluefireoly
2020-10-02 21:59:04 +02:00
parent f0d204727a
commit 2d090153a6
2 changed files with 4 additions and 6 deletions

View File

@@ -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\"."

View File

@@ -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