some more logs

This commit is contained in:
alexcrea 2026-01-29 18:49:05 +01:00 committed by alexcrea
parent ec2384bc7f
commit 39db70d7ad
2 changed files with 9 additions and 1 deletions

View file

@ -30,6 +30,7 @@ object EnchantmentUtil {
) = mutableMapOf<CAEnchantment, Int>().apply { ) = mutableMapOf<CAEnchantment, Int>().apply {
putAll(this@combineWith) putAll(this@combineWith)
CustomAnvil.verboseLog("Testing merge")
val bypassFuse = player.hasPermission(CustomAnvil.bypassFusePermission) val bypassFuse = player.hasPermission(CustomAnvil.bypassFusePermission)
val bypassLevel = player.hasPermission(CustomAnvil.bypassLevelPermission) val bypassLevel = player.hasPermission(CustomAnvil.bypassLevelPermission)

View file

@ -71,6 +71,11 @@ class PrepareAnvilListener : Listener {
return return
} }
if (ConfigOptions.verboseDebugLog) {
CustomAnvil.verboseLog("Testing items:")
CustomAnvil.verboseLog("first: $first")
CustomAnvil.verboseLog("second: $second")
}
if (isImmutable(first) || isImmutable(second)) { if (isImmutable(first) || isImmutable(second)) {
CustomAnvil.verboseLog("Skipping anvil process as one of the two item is immutable") CustomAnvil.verboseLog("Skipping anvil process as one of the two item is immutable")
@ -91,7 +96,9 @@ class PrepareAnvilListener : Listener {
if (testCustomRecipe(event, inventory, player, first, second)) return if (testCustomRecipe(event, inventory, player, first, second)) return
// Test rename lonely item // Test rename lonely item
if (second.isAir()) { val isAir = second.isAir()
CustomAnvil.verboseLog("checking air in main logic: $isAir")
if (isAir) {
doRenaming(event, inventory, player, first) doRenaming(event, inventory, player, first)
return return
} }