diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java index b813917653..e7270cfb59 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java @@ -209,7 +209,7 @@ public class AdminEnchant implements IAdminCommandHandler else { // set enchant value - player.getInventory().unEquipItemInSlotAndRecord(armorType); + player.getInventory().unEquipItemInSlotAndRecord(itemInstance.getEquipSlot()); itemInstance.setEnchantLevel(ench); player.getInventory().equipItemAndRecord(itemInstance); diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java index b813917653..e7270cfb59 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminEnchant.java @@ -209,7 +209,7 @@ public class AdminEnchant implements IAdminCommandHandler else { // set enchant value - player.getInventory().unEquipItemInSlotAndRecord(armorType); + player.getInventory().unEquipItemInSlotAndRecord(itemInstance.getEquipSlot()); itemInstance.setEnchantLevel(ench); player.getInventory().equipItemAndRecord(itemInstance);