mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Items: Send CreateObject for items in buyback inventory slots
This commit is contained in:
@@ -3596,21 +3596,9 @@ void Player::BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) c
|
||||
{
|
||||
if (target == this)
|
||||
{
|
||||
for (uint8 i = EQUIPMENT_SLOT_START; i < BANK_SLOT_BAG_END; ++i)
|
||||
{
|
||||
if (m_items[i] == nullptr)
|
||||
continue;
|
||||
|
||||
m_items[i]->BuildCreateUpdateBlockForPlayer(data, target);
|
||||
}
|
||||
|
||||
for (uint8 i = REAGENT_SLOT_START; i < CHILD_EQUIPMENT_SLOT_END; ++i)
|
||||
{
|
||||
if (m_items[i] == nullptr)
|
||||
continue;
|
||||
|
||||
m_items[i]->BuildCreateUpdateBlockForPlayer(data, target);
|
||||
}
|
||||
for (Item* item : m_items)
|
||||
if (item)
|
||||
item->BuildCreateUpdateBlockForPlayer(data, target);
|
||||
}
|
||||
|
||||
Unit::BuildCreateUpdateBlockForPlayer(data, target);
|
||||
|
||||
Reference in New Issue
Block a user