mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:27:22 +01:00
fix lodestonemapping crash temp
This commit is contained in:
parent
42f086730f
commit
b0ec2c5001
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ namespace MareSynchronosServer.Discord
|
|||
using var db = scope.ServiceProvider.GetService<MareDbContext>();
|
||||
|
||||
var lodestoneAuth = db.LodeStoneAuth.SingleOrDefault(u => u.DiscordId == id);
|
||||
if (lodestoneAuth != null || !DiscordLodestoneMapping.ContainsKey(id))
|
||||
if (lodestoneAuth != null && DiscordLodestoneMapping.ContainsKey(id))
|
||||
{
|
||||
Random rand = new();
|
||||
var randomServer = LodestoneServers[rand.Next(LodestoneServers.Length)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue