diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index f4491d336a0..5d68557149f 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -740,7 +740,10 @@ GLOBAL_LIST_INIT(skin_tone_names, list( newname = requesting_client?.prefs?.read_preference(preference_type) else var/datum/preference/preference = GLOB.preference_entries[preference_type] - newname = preference.create_informed_default_value(requesting_client.prefs) + if (requesting_client?.prefs) + newname = preference.create_informed_default_value(requesting_client.prefs) + else + newname = preference.create_default_value() for(var/mob/living/checked_mob in GLOB.player_list) if(checked_mob == src) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index ec4107e5d64..802c405ba23 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -508,7 +508,7 @@ ADMIN_VERB(spawn_debug_full_crew, R_DEBUG, "Spawn Debug Full Crew", "Creates a f if(tgui_alert(user, "This command will create a bunch of dummy crewmembers with minds, job, and datacore entries, which will take a while and fill the manifest.", "Spawn Crew", list("Yes", "Cancel")) != "Yes") return - if(tgui_alert(user, "I sure hope you aren't doing this on live. Are you sure?", "Spawn Crew (Be certain)", list("Yes", "Cancel")) != "Yes") + if(!user.is_localhost() && tgui_alert(user, "You are not on localhost! Are you sure?", "Spawn Crew (Be certain)", list("Yes", "Cancel")) != "Yes") return // Find the observer spawn, so we have a place to dump the dummies.