Send item list when adding new adena instance.

This commit is contained in:
MobiusDevelopment
2022-06-26 01:38:49 +00:00
parent 69127af274
commit 0500945790
28 changed files with 98 additions and 84 deletions

View File

@ -3291,9 +3291,16 @@ public class Player extends Playable
// Send update packet
if (!Config.FORCE_INVENTORY_UPDATE)
{
final InventoryUpdate iu = new InventoryUpdate();
iu.addItem(_inventory.getAdenaInstance());
sendPacket(iu);
if (count == getAdena())
{
sendPacket(new ItemList(this, false));
}
else
{
final InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(_inventory.getAdenaInstance());
sendPacket(iu);
}
}
else
{