mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
fix enchant combine not working
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
This commit is contained in:
parent
1e2acb6f48
commit
0ab7abd6b4
1 changed files with 1 additions and 3 deletions
|
|
@ -191,9 +191,7 @@ object AnvilMergeLogic {
|
|||
val firstEnchants = EnchantmentApi.getEnchantments(first)
|
||||
val secondEnchants = EnchantmentApi.getEnchantments(second)
|
||||
|
||||
// newEnchants will be mutated by combineWith
|
||||
val newEnchants = HashMap(firstEnchants)
|
||||
newEnchants.combineWith(secondEnchants, first, player)
|
||||
val newEnchants = firstEnchants.combineWith(secondEnchants, first, player)
|
||||
|
||||
var hasChanged = !isIdentical(firstEnchants, newEnchants)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue