From e9d989a32e264b1e6de74eebac8a7dea2cdf502d Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:07:39 -0700 Subject: [PATCH] [MIRROR] belly input failure message on close (#8895) Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 --- code/modules/vore/eating/vorepanel_vr.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/vore/eating/vorepanel_vr.dm b/code/modules/vore/eating/vorepanel_vr.dm index 9e6ae0dcae..f883752149 100644 --- a/code/modules/vore/eating/vorepanel_vr.dm +++ b/code/modules/vore/eating/vorepanel_vr.dm @@ -629,6 +629,9 @@ var/global/list/belly_colorable_only_fullscreens = list("a_synth_flesh_mono", var/new_name = html_encode(tgui_input_text(usr,"New belly's name:","New Belly")) + if(!new_name) + return FALSE + var/failure_msg if(length(new_name) > BELLIES_NAME_MAX || length(new_name) < BELLIES_NAME_MIN) failure_msg = "Entered belly name length invalid (must be longer than [BELLIES_NAME_MIN], no more than than [BELLIES_NAME_MAX])."