mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
Write conflict to file when write conflict is called.
Allow custom default rarity. Update ConflictBuilder javadoc. Allow null source for ConflictBuilder. Log conflict origin on warning.
This commit is contained in:
parent
06b3dc89c2
commit
e1f6c3f5a8
5 changed files with 174 additions and 44 deletions
|
|
@ -28,7 +28,7 @@ class EnchantConflictManager {
|
|||
private const val FUTURE_USE_PATH = "useInFuture"
|
||||
|
||||
// Default name for a joining group
|
||||
public const val DEFAULT_GROUP_NAME = "joinedGroup"
|
||||
const val DEFAULT_GROUP_NAME = "joinedGroup"
|
||||
|
||||
// 1.20.5 compatibility TODO better update system
|
||||
private val SWEEPING_EDGE_ENCHANT =
|
||||
|
|
@ -175,7 +175,7 @@ class EnchantConflictManager {
|
|||
if(doConflict){
|
||||
return ConflictType.ENCHANTMENT_CONFLICT
|
||||
}
|
||||
;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -188,7 +188,7 @@ class EnchantConflictManager {
|
|||
|
||||
}
|
||||
|
||||
return result;
|
||||
return result
|
||||
}
|
||||
|
||||
private fun createPartialResult(item: ItemStack, enchantments: Map<CAEnchantment, Int>): ItemStack {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue