Fix TNTLeague

This commit is contained in:
2025-01-20 16:46:53 +01:00
parent 747bb1055d
commit eacae09e4f
3 changed files with 5 additions and 7 deletions
@@ -22,14 +22,13 @@ package de.steamwar.kotlin
import de.steamwar.inventory.SWInventory
import org.bukkit.entity.Player
import org.bukkit.event.inventory.InventoryClickEvent
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.ItemStack
abstract class KotlinInventory(val player: Player) {
private val inv: SWInventory by lazy { SWInventory(player) { createInventory() } }
private val inv: SWInventory by lazy { createInventory() }
abstract fun createInventory(): Inventory
abstract fun createInventory(): SWInventory
fun open() = inv.open()