diff --git a/code/game/gamemodes/nations/nations.dm b/code/game/gamemodes/nations/nations.dm index b6bbe97aa27..27874f009e8 100644 --- a/code/game/gamemodes/nations/nations.dm +++ b/code/game/gamemodes/nations/nations.dm @@ -256,6 +256,9 @@ datum/game_mode/nations * Parameters: var/mob/living/carbon/human, var/rank */ /hook/latespawn/proc/give_latejoiners_nations(var/mob/living/carbon/human/H) + var/datum/game_mode/nations/mode = get_nations_mode() + if (!mode) return 1 + var/list/cargonians = list("Quartermaster","Cargo Technician","Shaft Miner") if(H.mind) if(H.mind.assigned_role in engineering_positions) @@ -302,4 +305,11 @@ datum/game_mode/nations return else message_admins("[H.name] with [H.mind.assigned_role] could not find any nation to assign!") - return \ No newline at end of file + return + + +/proc/get_nations_mode() + if(!ticker || !istype(ticker.mode, /datum/game_mode/nations)) + return null + + return ticker.mode \ No newline at end of file