Core/Misc: Added Loading.Locales to enable/disable the load of locales
Port From (https://github.com/TrinityCore/TrinityCore/commit/3fd967754388b7b859dbd8b954ec68a844e172f0)
This commit is contained in:
@@ -141,7 +141,12 @@ namespace Game.Entities
|
||||
public void InitializeQueryData()
|
||||
{
|
||||
for (var loc = Locale.enUS; loc < Locale.Total; ++loc)
|
||||
{
|
||||
if (!WorldConfig.GetBoolValue(WorldCfg.LoadLocales) && loc != SharedConst.DefaultLocale)
|
||||
continue;
|
||||
|
||||
QueryData[(int)loc] = BuildQueryData(loc, Difficulty.None);
|
||||
}
|
||||
}
|
||||
|
||||
public QueryCreatureResponse BuildQueryData(Locale locale, Difficulty difficulty)
|
||||
|
||||
Reference in New Issue
Block a user