mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
fix durability repair and item naming
This commit is contained in:
parent
745ebcde29
commit
af99913eae
7 changed files with 97 additions and 29 deletions
|
|
@ -19,8 +19,8 @@ object EnchantmentUtil {
|
|||
/**
|
||||
* Combine 2 sets of enchantments according to our configuration
|
||||
*/
|
||||
fun MutableMap<Enchantment, Int>.combineWith(
|
||||
other: MutableMap<Enchantment, Int>
|
||||
fun Map<Enchantment, Int>.combineWith(
|
||||
other: Map<Enchantment, Int>
|
||||
) = mutableMapOf<Enchantment, Int>().apply {
|
||||
putAll(this@combineWith)
|
||||
other.forEach { (enchantment, level) ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue