Skip to content

Commit

Permalink
admemefix
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalEpicness committed Feb 21, 2024
1 parent 9c4fec2 commit 15ed691
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/modules/admin/admin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15ed691

Please sign in to comment.