add more debug log

This commit is contained in:
alexcrea 2024-12-07 15:56:35 +01:00
parent 5a2ec92217
commit c57efbd9cb
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
2 changed files with 2 additions and 1 deletions

View file

@ -16,7 +16,7 @@ plugins {
}
group = "xyz.alexcrea"
version = "1.6.12-debug"
version = "1.6.12-debug.2"
repositories {
// EcoEnchants

View file

@ -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)