Fixed invisible dual weapons when logout after enchanting.
This commit is contained in:
parent
a1cbe30962
commit
8b2147d013
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user