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

View File

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