Merge pull request #12004 from Heroman3003/paintname-limit

Limits painting name length to 250 characters
This commit is contained in:
Casey
2021-12-11 13:55:38 +00:00
committed by Chompstation Bot
parent 4e6cfa7f72
commit 2c122a8822
+1 -1
View File
@@ -215,7 +215,7 @@
return canvas_color
/obj/item/canvas/proc/try_rename(mob/user)
var/new_name = stripped_input(user,"What do you want to name the painting?")
var/new_name = stripped_input(user,"What do you want to name the painting?", max_length = 250)
if(new_name != painting_name && new_name && CanUseTopic(user, GLOB.tgui_physical_state))
painting_name = new_name
SStgui.update_uis(src)