Added region bound.
This commit is contained in:
@@ -157,9 +157,15 @@ internal class ContextMenu : IHostedService
|
||||
if (name.Contains('-', StringComparison.Ordinal) || name.Contains('_', StringComparison.Ordinal))
|
||||
return false;
|
||||
|
||||
return x.RowId > 3001 && IsChineseJapaneseKoreanString(name);
|
||||
return x.DataCenter.Value.Region != 5 || x.RowId > 3001 && x.RowId != 1200 && IsChineseJapaneseKoreanString(name);
|
||||
});
|
||||
|
||||
foreach (var world in luminaWorlds)
|
||||
{
|
||||
_logger.LogInformation(message: $"ID: {world.RowId} - World: {world.Name.ExtractText()}");
|
||||
}
|
||||
_logger.LogInformation(message: $"Character is in World: {worldId}");
|
||||
|
||||
return luminaWorlds.FirstOrDefault(x => x.RowId == worldId);
|
||||
}
|
||||
private static bool IsChineseJapaneseKoreanString(string text) => text.All(IsChineseJapaneseKoreanCharacter);
|
||||
|
||||
Reference in New Issue
Block a user