Skip to content

Commit 90aabb7

Browse files
committed
Fix errors for Chinese/Korean/French languages when creating the cache
1 parent a7b9b7d commit 90aabb7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

xivModdingFramework/Cache/XivCache.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,12 @@ private async Task RebuildMountsCache()
281281

282282
var _companions = new Companions(_gameInfo.GameDirectory, _gameInfo.GameLanguage);
283283
var list = await _companions.GetUncachedMountList();
284-
list.AddRange(await _companions.GetUncachedOrnamentList());
284+
285+
// Don't get the ornament list for the Chinese or Korean clients as they don't have them yet
286+
if (_gameInfo.GameLanguage != XivLanguage.Chinese && _gameInfo.GameLanguage != XivLanguage.Korean)
287+
{
288+
list.AddRange(await _companions.GetUncachedOrnamentList());
289+
}
285290

286291
db.Open();
287292
using (var transaction = db.BeginTransaction())

xivModdingFramework/Resources/SQL/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ CREATE TABLE "items" (
4545
"primary_id_2" INTEGER NOT NULL,
4646
"secondary_id_2" INTEGER NOT NULL,
4747
"imc_variant_2" INTEGER NOT NULL,
48-
PRIMARY KEY("name")
48+
PRIMARY KEY("name", "exd_id")
4949
);
5050

5151
CREATE TABLE "ui" (

0 commit comments

Comments
 (0)