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

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