fix disenchant bugs from setdurability etc

This commit is contained in:
sylvessa
2026-04-18 14:31:19 -05:00
committed by itsRevela
parent f9cac6395b
commit 2e0f4f91d6
2 changed files with 6 additions and 8 deletions

View File

@@ -154,7 +154,7 @@ public class ItemMeta
/// <param name="enchants">The enchantments to set.</param>
public void setEnchants(Dictionary<EnchantmentType, int>? enchants)
{
enchants = enchants != null ? new Dictionary<EnchantmentType, int>(enchants) : null;
_enchants = enchants != null ? new Dictionary<EnchantmentType, int>(enchants) : null;
}