mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
some more logs
This commit is contained in:
parent
ec2384bc7f
commit
39db70d7ad
2 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue