Core/Items: Send CreateObject for items in buyback inventory slots
Port From (https://github.com/TrinityCore/TrinityCore/commit/782ee42989821d551f5d2bce2d231e38ed360dce)
This commit is contained in:
@@ -8091,21 +8091,8 @@ namespace Game.Entities
|
|||||||
{
|
{
|
||||||
if (target == this)
|
if (target == this)
|
||||||
{
|
{
|
||||||
for (byte i = EquipmentSlot.Start; i < InventorySlots.BankBagEnd; ++i)
|
foreach (Item item in m_items)
|
||||||
{
|
item?.BuildCreateUpdateBlockForPlayer(data, target);
|
||||||
if (m_items[i] == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
m_items[i].BuildCreateUpdateBlockForPlayer(data, target);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (byte i = InventorySlots.ReagentStart; i < InventorySlots.ChildEquipmentEnd; ++i)
|
|
||||||
{
|
|
||||||
if (m_items[i] == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
m_items[i].BuildCreateUpdateBlockForPlayer(data, target);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base.BuildCreateUpdateBlockForPlayer(data, target);
|
base.BuildCreateUpdateBlockForPlayer(data, target);
|
||||||
|
|||||||
Reference in New Issue
Block a user