From 8b2147d01318abe71eb5d45f82fb37b7ce282e13 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 28 Aug 2022 16:24:32 +0000 Subject: [PATCH] Fixed invisible dual weapons when logout after enchanting. --- .../gameserver/handler/admincommandhandlers/AdminEnchant.java | 2 +- .../gameserver/handler/admincommandhandlers/AdminEnchant.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);