fix enchant combine not working
Some checks are pending
Java CI with Gradle / build (push) Waiting to run

This commit is contained in:
alexcrea 2026-06-30 19:56:29 +02:00
parent 1e2acb6f48
commit 0ab7abd6b4
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -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)