[Performance] Character Save Optimizations (#4851)

This commit is contained in:
Chris Miles
2025-04-09 20:56:24 -05:00
committed by GitHub
parent 50ad97aa0b
commit b883888a19
5 changed files with 24 additions and 3 deletions
+5 -1
View File
@@ -4621,8 +4621,12 @@ void Mob::SetZone(uint32 zone_id, uint32 instance_id)
{
CastToClient()->GetPP().zone_id = zone_id;
CastToClient()->GetPP().zoneInstance = instance_id;
CastToClient()->SaveCharacterData();
}
if (!IsClient()) {
Save(); // bots or other things might be covered here for some reason
}
Save();
}
void Mob::Kill() {