forked from SteamWar/SteamWar
Fix TNTLeague
This commit is contained in:
@@ -41,8 +41,6 @@ import java.util.*
|
||||
|
||||
class DealerInventory(player: Player): KotlinInventory(player) {
|
||||
|
||||
private val inv: SWInventory = SWInventory(player) { createInventory() }
|
||||
|
||||
init {
|
||||
this[10] = SWItem(Material.REDSTONE_BLOCK, message.parse("DEALER_REDSTONE", player)).itemStack to openCategory(TNTLeagueConfig.ItemCategory.REDSTONE)
|
||||
this[12] = SWItem(Material.END_STONE, message.parse("DEALER_BLOCKS", player)).itemStack to openCategory(TNTLeagueConfig.ItemCategory.BLOCKS)
|
||||
@@ -56,7 +54,7 @@ class DealerInventory(player: Player): KotlinInventory(player) {
|
||||
|
||||
private fun openCategory(cat: TNTLeagueConfig.ItemCategory): (e: InventoryClickEvent) -> Unit = { CategoryInventory(player, cat).open() }
|
||||
|
||||
override fun createInventory(): Inventory = plugin.server.createInventory(null, 6 * 9, Component.text(message.parse("DEALER", player)))
|
||||
override fun createInventory() = SWInventory(player, 9 * 6, message.parse("DEALER", player))
|
||||
|
||||
companion object {
|
||||
private val priceKey = NamespacedKey(plugin, "price")
|
||||
|
||||
Reference in New Issue
Block a user