From 07c46b3964b7089670f1e5adce17566d035340d3 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 31 Aug 2019 15:27:22 -0400 Subject: [PATCH] Core/Misc: always output client cache version on loading Port From (https://github.com/TrinityCore/TrinityCore/commit/9e840d05c45f0ee818d7676316b20561ddf790a9) --- Source/Game/Server/WorldConfig.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Game/Server/WorldConfig.cs b/Source/Game/Server/WorldConfig.cs index be1ea11ed..d0353ad90 100644 --- a/Source/Game/Server/WorldConfig.cs +++ b/Source/Game/Server/WorldConfig.cs @@ -725,26 +725,22 @@ namespace Game { // overwrite DB/old value if (clientCacheId > 0) - { Values[WorldCfg.ClientCacheVersion] = clientCacheId; - Log.outInfo(LogFilter.ServerLoading, "Client cache version set to: {0}", clientCacheId); - } else Log.outError(LogFilter.ServerLoading, "ClientCacheVersion can't be negative {0}, ignored.", clientCacheId); } + Log.outInfo(LogFilter.ServerLoading, "Client cache version set to: {0}", clientCacheId); int hotfixCacheId = GetDefaultValue("HotfixCacheVersion", 0); if (hotfixCacheId != 0) { // overwrite DB/old value if (hotfixCacheId > 0) - { Values[WorldCfg.HotfixCacheVersion] = hotfixCacheId; - Log.outInfo(LogFilter.ServerLoading, "Hotfix cache version set to: {0}", hotfixCacheId); - } else Log.outError(LogFilter.ServerLoading, "HotfixCacheVersion can't be negative {0}, ignored.", hotfixCacheId); } + Log.outInfo(LogFilter.ServerLoading, "Hotfix cache version set to: {0}", hotfixCacheId); Values[WorldCfg.GuildNewsLogCount] = GetDefaultValue("Guild.NewsLogRecordsCount", GuildConst.NewsLogMaxRecords); if ((int)Values[WorldCfg.GuildNewsLogCount] > GuildConst.NewsLogMaxRecords)