From 3986e4c5a5554d8861b00bb0de5964a29121b180 Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Sat, 24 May 2025 06:55:46 -0700 Subject: [PATCH] Theoretically fix new player runtime (#17739) --- code/modules/mob/new_player/login.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/mob/new_player/login.dm b/code/modules/mob/new_player/login.dm index 90e866fc414..5ec996c18a8 100644 --- a/code/modules/mob/new_player/login.dm +++ b/code/modules/mob/new_player/login.dm @@ -1,4 +1,10 @@ /mob/new_player/Login() + // Happens sometimes + if(QDELETED(src)) + var/mob/new_player/replacement = new /mob/new_player() + replacement.key = key + return + update_Login_details() //handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying if(GLOB.join_motd) GLOB.join_motd = GLOB.is_valid_url.Replace(GLOB.join_motd, span_linkify("$1"))