From 15ed69167bf93f15ca1dd67aeac2809bc7cb2c2f Mon Sep 17 00:00:00 2001 From: Epicness Date: Wed, 21 Feb 2024 13:06:26 -1000 Subject: [PATCH] admemefix --- code/modules/admin/admin.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index fe95affaffd2..dcb34fbf95b0 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -182,12 +182,10 @@ for(var/path in types) if(findtext("[path]", object)) matches += path - - if(matches.len==0) + if(matches.len==0 || matches == "" || matches == " ") return - var/chosen - if(matches.len==1) + if(matches.len > 1) chosen = matches[1] else chosen = tgui_input_list(usr, "Select an atom type", "Spawn Atom", matches)