2 Commits

Author SHA1 Message Date
bashermens
b37d504c99 Merge pull request #145 from hermensbas/fixes/delta_cleanup_correction
[HOT FIX] Cleanup corrections (mistakes make during cleanup)
2026-01-11 21:23:51 +01:00
bash
d81355460f corrections 2026-01-11 20:49:54 +01:00
2 changed files with 9 additions and 0 deletions

View File

@@ -482,6 +482,8 @@ void WorldSession::HandlePetitionSignOpcode(WorldPacket& recvData)
break;
}
sScriptMgr->OnPlayerbotCheckPetitionAccount(_player, found);
if (found)
{
WorldPacket data(SMSG_PETITION_SIGN_RESULTS, (8 + 8 + 4));

View File

@@ -1722,6 +1722,13 @@ void Map::SendObjectUpdates()
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
{
if (!sScriptMgr->OnPlayerbotCheckUpdatesToSend(iter->first))
{
iter->second.Clear();
continue;
}
iter->second.BuildPacket(packet);
iter->first->SendDirectMessage(&packet);
packet.clear(); // clean the string