mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Automatic Enchantment Squared configuration.
This commit is contained in:
parent
6553122819
commit
fd1fb97174
6 changed files with 185 additions and 5 deletions
|
|
@ -310,11 +310,9 @@ object ConfigOptions {
|
|||
val enchantment = WrappedEnchantment.getByName(enchantmentName)
|
||||
if(enchantment != null){
|
||||
val rarity = enchantment.defaultRarity()
|
||||
if(rarity != null){
|
||||
return if(isFromBook) rarity.bookValue
|
||||
else rarity.itemValue
|
||||
|
||||
}
|
||||
return if(isFromBook) rarity.bookValue
|
||||
else rarity.itemValue
|
||||
}
|
||||
|
||||
return DEFAULT_ENCHANT_VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue