mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #11481 from VOREStation/upstream-merge-8226
[MIRROR] Fixes infinite naming loop
This commit is contained in:
committed by
Chompstation Bot
parent
9fa44f50ce
commit
9bd14b52cb
@@ -475,11 +475,9 @@
|
||||
if(clean_name)
|
||||
var/okay = tgui_alert(target,"New name will be '[clean_name]', ok?", "Confirmation",list("Cancel","Ok"))
|
||||
if(okay == "Ok")
|
||||
new_name = clean_name
|
||||
|
||||
new_name = sanitizeName(new_name, allow_numbers = TRUE)
|
||||
target.name = new_name
|
||||
target.real_name = target.name
|
||||
return
|
||||
|
||||
/datum/surgery_step/robotics/install_mmi/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
user.visible_message("<span class='warning'>[user]'s hand slips.</span>", \
|
||||
|
||||
Reference in New Issue
Block a user