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
|
else
|
||||||
{
|
{
|
||||||
// set enchant value
|
// set enchant value
|
||||||
player.getInventory().unEquipItemInSlotAndRecord(armorType);
|
player.getInventory().unEquipItemInSlotAndRecord(itemInstance.getEquipSlot());
|
||||||
itemInstance.setEnchantLevel(ench);
|
itemInstance.setEnchantLevel(ench);
|
||||||
player.getInventory().equipItemAndRecord(itemInstance);
|
player.getInventory().equipItemAndRecord(itemInstance);
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ public class AdminEnchant implements IAdminCommandHandler
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// set enchant value
|
// set enchant value
|
||||||
player.getInventory().unEquipItemInSlotAndRecord(armorType);
|
player.getInventory().unEquipItemInSlotAndRecord(itemInstance.getEquipSlot());
|
||||||
itemInstance.setEnchantLevel(ench);
|
itemInstance.setEnchantLevel(ench);
|
||||||
player.getInventory().equipItemAndRecord(itemInstance);
|
player.getInventory().equipItemAndRecord(itemInstance);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user