Include consumed items to inventory update.

This commit is contained in:
MobiusDev
2017-09-11 01:43:39 +00:00
parent e51e0fb512
commit 0578083b7f
3 changed files with 12 additions and 0 deletions

View File

@@ -85,6 +85,10 @@ public class RequestChangeAttributeItem implements IClientIncomingPacket
activeChar.sendPacket(msg);
InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(item);
for (L2ItemInstance i : activeChar.getInventory().getItemsByItemId(_consumeItemId))
{
iu.addItem(i);
}
activeChar.sendPacket(iu);
activeChar.broadcastUserInfo();
activeChar.sendPacket(ExChangeAttributeOk.STATIC);