Core/Misc: Remove function calls through singleton global within the same class

Port From (https://github.com/TrinityCore/TrinityCore/commit/8f6ce648366099aecb966a57049371bfa4b19e56)
This commit is contained in:
hondacrx
2022-10-11 17:14:21 -04:00
parent 9ea20a8925
commit 51cd499bd0
2 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -1141,8 +1141,8 @@ namespace Game
// load update time related configs
_worldUpdateTime.LoadFromConfig();
Global.WorldMgr.SetPlayerAmountLimit((uint)ConfigMgr.GetDefaultValue("PlayerLimit", 100));
Global.WorldMgr.SetMotd(ConfigMgr.GetDefaultValue("Motd", "Welcome to a Cypher Core Server."));
SetPlayerAmountLimit((uint)ConfigMgr.GetDefaultValue("PlayerLimit", 100));
SetMotd(ConfigMgr.GetDefaultValue("Motd", "Welcome to a Cypher Core Server."));
if (reload)
{