RynthCore as of 2026-09-27 (internal d359eee): items past the old object-id range, no idle logoff, overlay popups without the panel flash, UI hidden at character select, vendor trading (API 67), Settings rows and Vendoring tab, release 2026.9.27.2
This commit is contained in:
parent
f407326377
commit
9b5e2765b7
43 changed files with 4216 additions and 62 deletions
|
|
@ -85,12 +85,17 @@ internal static class CharacterCacheStore
|
|||
return;
|
||||
|
||||
List<string> characters = Read(accountName, serverName);
|
||||
if (!characters.Contains(characterName, StringComparer.OrdinalIgnoreCase))
|
||||
if (!characters.Any(existing => IsSameCharacter(existing, characterName)))
|
||||
characters.Add(characterName);
|
||||
|
||||
Write(accountName, serverName, characters);
|
||||
}
|
||||
|
||||
// The client shows admin names with a leading '+' ('+Buffi'); a launch-context
|
||||
// name may lack it. Treat both as one character so the list holds no duplicate.
|
||||
private static bool IsSameCharacter(string a, string b) =>
|
||||
string.Equals(a.Trim().TrimStart('+'), b.Trim().TrimStart('+'), StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
public static void DeleteForAccount(string accountName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(accountName))
|
||||
|
|
|
|||
Loading…
Reference in a new issue