fix(Core/Items): Properly transfer enchantment durations from old to … (#11828)
fix(Core/Items): Properly transfer enchantment durations from old to newly created/summoned items. Fixes #11687
This commit is contained in:
parent
99f1cd84e2
commit
914ea4f9c3
3 changed files with 12 additions and 0 deletions
|
|
@ -4758,6 +4758,14 @@ void Player::SendEnchantmentDurations()
|
|||
}
|
||||
}
|
||||
|
||||
void Player::UpdateEnchantmentDurations()
|
||||
{
|
||||
for (EnchantDurationList::iterator itr = m_enchantDuration.begin(); itr != m_enchantDuration.end(); ++itr)
|
||||
{
|
||||
itr->item->SetEnchantmentDuration(itr->slot, itr->leftduration, this);
|
||||
}
|
||||
}
|
||||
|
||||
void Player::SendItemDurations()
|
||||
{
|
||||
for (ItemDurationList::const_iterator itr = m_itemDuration.begin(); itr != m_itemDuration.end(); ++itr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue