mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
Fixed strange issue related to item meta.
Added more verbose debug log.
This commit is contained in:
parent
1eac81aef6
commit
c7fee98d44
6 changed files with 23 additions and 21 deletions
|
|
@ -160,13 +160,14 @@ class EnchantConflictManager {
|
|||
var result = ConflictType.NO_CONFLICT
|
||||
for (conflict in conflictList) {
|
||||
CustomAnvil.verboseLog("Is against $conflict")
|
||||
val conflicting = conflict.allowed(base, mat)
|
||||
CustomAnvil.verboseLog("Was against $conflict and conflicting: $conflicting ")
|
||||
if (!conflicting) {
|
||||
val allowed = conflict.allowed(base, mat)
|
||||
CustomAnvil.verboseLog("Was against $conflict and conflicting: ${!allowed} ")
|
||||
if (!allowed) {
|
||||
if (conflict.getEnchants().size <= 1) {
|
||||
result = ConflictType.SMALL_CONFLICT
|
||||
CustomAnvil.verboseLog("Small conflict, continuing")
|
||||
} else {
|
||||
CustomAnvil.verboseLog("Big conflict, probably stoping")
|
||||
return ConflictType.BIG_CONFLICT
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue