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:
@@ -23,7 +23,7 @@ namespace Game.DataStorage
|
||||
foreach (var dir in Directory.GetDirectories(db2Path))
|
||||
{
|
||||
Locale locale = Path.GetFileName(dir).ToEnum<Locale>();
|
||||
if (SharedConst.IsValidLocale(locale))
|
||||
if (SharedConst.IsValidLocale(locale) && (WorldConfig.GetBoolValue(WorldCfg.LoadLocales) || locale == defaultLocale))
|
||||
availableDb2Locales[(int)locale] = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user