forked from SteamWar/SteamWar
Cleanup DealerInventory and TNTLeagueConfig
This commit is contained in:
@@ -37,7 +37,6 @@ import org.bukkit.inventory.Inventory
|
||||
import org.bukkit.inventory.ItemStack
|
||||
import org.bukkit.persistence.PersistentDataType
|
||||
import java.util.*
|
||||
import kotlin.math.ceil
|
||||
|
||||
class DealerInventory(val player: Player): SWInventoryHolder() {
|
||||
|
||||
@@ -83,7 +82,7 @@ class DealerInventory(val player: Player): SWInventoryHolder() {
|
||||
}
|
||||
|
||||
team.coins -= price
|
||||
player.inventory.addItem(ItemStack.of(item.first.type, amount).also { item.second.extras.forEach { extra -> it.itemMeta = extra.func(it.itemMeta) } })
|
||||
player.inventory.addItem(ItemStack.of(item.first.type, amount).apply { item.second.extras.forEach { itemMeta = itemMeta.apply(it.func) } })
|
||||
}
|
||||
|
||||
private val items by lazy {
|
||||
|
||||
Reference in New Issue
Block a user