makes inputs apply on click again (#7957)

This commit is contained in:
Kashargul
2024-03-14 07:38:23 +01:00
committed by GitHub
parent 1a08bed4ad
commit 1ba703fe75
2 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/client/proc/resize() // CHOMPEdit
/client/proc/resize(var/mob/living/L) // CHOMPEdit
set name = "Resize"
set desc = "Resizes any living mob without any restrictions on size."
set category = "Fun"
@@ -7,7 +7,8 @@
if(!check_rights(R_ADMIN|R_FUN|R_VAREDIT))
return
var/mob/living/L = tgui_input_list(usr, "Resizes any living mob without any restrictions on size.", "Resize", mob_list)
if(L?.client == usr.client)
L = tgui_input_list(usr, "Resizes any living mob without any restrictions on size.", "Resize", mob_list)
if(!L)
return