Send modified item inventory update with checkAndEquipAmmunition method.

This commit is contained in:
MobiusDevelopment
2021-11-08 23:16:25 +00:00
parent 9bb7369263
commit e3691a48d9
21 changed files with 93 additions and 36 deletions

View File

@ -5783,11 +5783,14 @@ public class PlayerInstance extends Playable
{
arrows = _inventory.findBoltForCrossBow(weapon);
}
// Equip arrows needed in left hand.
if (arrows != null)
{
// Equip arrows needed in left hand
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
sendItemList(false);
final InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(arrows);
sendInventoryUpdate(iu);
return true;
}
}