mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Use correct default. Also disable Enchantment Squared anvil listener.
This commit is contained in:
parent
88c4f0509b
commit
fc033460b4
4 changed files with 22 additions and 4 deletions
|
|
@ -306,6 +306,17 @@ object ConfigOptions {
|
|||
if(enchantmentName == "sweeping_edge"){
|
||||
return enchantmentValue("sweeping", isFromBook)
|
||||
}
|
||||
|
||||
val enchantment = WrappedEnchantment.getByName(enchantmentName)
|
||||
if(enchantment != null){
|
||||
val rarity = enchantment.defaultRarity()
|
||||
if(rarity != null){
|
||||
return if(isFromBook) rarity.bookValue
|
||||
else rarity.itemValue
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return DEFAULT_ENCHANT_VALUE
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue