mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
add more debug log
This commit is contained in:
parent
5a2ec92217
commit
c57efbd9cb
2 changed files with 2 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "xyz.alexcrea"
|
||||
version = "1.6.12-debug"
|
||||
version = "1.6.12-debug.2"
|
||||
|
||||
repositories {
|
||||
// EcoEnchants
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ object EnchantmentUtil {
|
|||
// Get max level or 255 if player can bypass
|
||||
val maxLevel = if (bypassLevel) { 255 }
|
||||
else { ConfigOptions.enchantLimit(enchantment) }
|
||||
CustomAnvil.verboseLog("Max level of ${enchantment.key} is $maxLevel (bypassLevel is $bypassLevel)")
|
||||
|
||||
val cappedLevel = min(level, maxLevel)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue