From f18cf88367b9487fcbb464ecc66ae341ff6d2e91 Mon Sep 17 00:00:00 2001 From: Yamato <66829532+louis1706@users.noreply.github.com> Date: Sat, 25 Jul 2026 21:02:03 +0200 Subject: [PATCH] fix: An item with the same key has already been added. --- EXILED/Exiled.Events/Patches/Events/Player/Verified.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Player/Verified.cs b/EXILED/Exiled.Events/Patches/Events/Player/Verified.cs index 7b274bc7c1..52fc7cabab 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/Verified.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/Verified.cs @@ -38,7 +38,8 @@ internal static void PlayerVerified(ReferenceHub hub) if (!Player.UnverifiedPlayers.TryGetValue(hub.gameObject, out Player player)) Joined.CallEvent(hub, out player); - Player.Dictionary.Add(hub.gameObject, player); + if (!Player.Dictionary.TryAdd(hub.gameObject, player)) + Player.Dictionary[hub.gameObject] = player; player.IsVerified = true; player.RawUserId = player.UserId.GetRawUserId();