Fixed invisible dual weapons when logout after enchanting.

This commit is contained in:
MobiusDevelopment 2022-08-28 16:24:32 +00:00
parent a1cbe30962
commit 8b2147d013
2 changed files with 2 additions and 2 deletions

View File

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

View File

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