mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Rewrote the inventory code, splitting the packet updates from the list updates.
This commit is contained in:
@@ -106,13 +106,13 @@ namespace FFXIVClassic_Map_Server.actors.chara.player
|
||||
|
||||
for (int i = 0; i < slots.Length; i++)
|
||||
{
|
||||
InventoryItem item = normalInventory.GetItemBySlot(itemSlots[i]);
|
||||
InventoryItem item = normalInventory.GetItemAtSlot(itemSlots[i]);
|
||||
|
||||
if (item == null)
|
||||
continue;
|
||||
|
||||
Database.EquipItem(owner, slots[i], item.uniqueId);
|
||||
list[slots[i]] = normalInventory.GetItemBySlot(itemSlots[i]);
|
||||
list[slots[i]] = normalInventory.GetItemAtSlot(itemSlots[i]);
|
||||
}
|
||||
|
||||
owner.QueuePacket(InventoryBeginChangePacket.BuildPacket(owner.actorId));
|
||||
@@ -133,7 +133,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.player
|
||||
|
||||
public void Equip(ushort slot, ushort invSlot)
|
||||
{
|
||||
InventoryItem item = normalInventory.GetItemBySlot(invSlot);
|
||||
InventoryItem item = normalInventory.GetItemAtSlot(invSlot);
|
||||
|
||||
if (item == null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user