mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +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"
|
group = "xyz.alexcrea"
|
||||||
version = "1.6.12-debug"
|
version = "1.6.12-debug.2"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
// EcoEnchants
|
// EcoEnchants
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ object EnchantmentUtil {
|
||||||
// Get max level or 255 if player can bypass
|
// Get max level or 255 if player can bypass
|
||||||
val maxLevel = if (bypassLevel) { 255 }
|
val maxLevel = if (bypassLevel) { 255 }
|
||||||
else { ConfigOptions.enchantLimit(enchantment) }
|
else { ConfigOptions.enchantLimit(enchantment) }
|
||||||
|
CustomAnvil.verboseLog("Max level of ${enchantment.key} is $maxLevel (bypassLevel is $bypassLevel)")
|
||||||
|
|
||||||
val cappedLevel = min(level, maxLevel)
|
val cappedLevel = min(level, maxLevel)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue