Fixed inventory enchant result fail visual bug.
This commit is contained in:
parent
4dc9a34a61
commit
9c9fc802de
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList(true);
|
||||
}
|
||||
player.sendItemList(true);
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList(true);
|
||||
}
|
||||
player.sendItemList(true);
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList(true);
|
||||
}
|
||||
player.sendItemList(true);
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList(true);
|
||||
}
|
||||
player.sendItemList(true);
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList();
|
||||
}
|
||||
player.sendItemList();
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList();
|
||||
}
|
||||
player.sendItemList();
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList();
|
||||
}
|
||||
player.sendItemList();
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList(true);
|
||||
}
|
||||
player.sendItemList(true);
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList(true);
|
||||
}
|
||||
player.sendItemList(true);
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList();
|
||||
}
|
||||
player.sendItemList();
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList();
|
||||
}
|
||||
player.sendItemList();
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
@ -454,44 +454,7 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if (!Config.FORCE_INVENTORY_UPDATE)
|
||||
{
|
||||
if (scroll.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(scroll);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(scroll);
|
||||
}
|
||||
|
||||
if (item.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(item);
|
||||
}
|
||||
|
||||
if (support != null)
|
||||
{
|
||||
if (support.getCount() == 0)
|
||||
{
|
||||
iu.addRemovedItem(support);
|
||||
}
|
||||
else
|
||||
{
|
||||
iu.addModifiedItem(support);
|
||||
}
|
||||
}
|
||||
|
||||
player.sendInventoryUpdate(iu);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendItemList();
|
||||
}
|
||||
player.sendItemList();
|
||||
|
||||
request.setProcessing(false);
|
||||
player.broadcastUserInfo(UserInfoType.ENCHANTLEVEL);
|
||||
|
Loading…
Reference in New Issue
Block a user