fixup! refactor(Core/World): Move various worldstate related function… (#22119)

This commit is contained in:
Jelle Meeus 2025-05-13 21:03:42 +02:00 committed by GitHub
parent bf5a62ec2b
commit 2883160086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1755,7 +1755,6 @@ void World::SetInitialWorldSettings()
LOG_INFO("server.loading", "Loading WorldStates..."); // must be loaded before battleground, outdoor PvP and conditions
sWorldState->LoadWorldStates();
sWorldState->Load();
LOG_INFO("server.loading", "Loading Conditions...");
sConditionMgr->LoadConditions();
@ -1880,6 +1879,9 @@ void World::SetInitialWorldSettings()
uint32 nextGameEvent = sGameEventMgr->StartSystem();
_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event
LOG_INFO("server.loading", "Loading WorldState...");
sWorldState->Load(); // must be called after loading game events
// Delete all characters which have been deleted X days before
Player::DeleteOldCharacters();