[MIRROR] prevent out of index access on tgui spamming the rd console (#9404)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-11-04 11:33:58 +01:00
committed by GitHub
co-authored by Kashargul
parent cb38cd05f5
commit 8d25228ed5
5 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -222,7 +222,7 @@
// Install
if(W.has_tool_quality(TOOL_SCREWDRIVER))
user.visible_message(span_info(anchored ? span_bold("\The [user]") + " begins unscrewing \the [src]." : span_bold("\The [user]") + "begins fasten \the [src]." ))
user.visible_message(span_info((anchored ? (span_bold("\The [user]") + " begins unscrewing \the [src].") : (span_bold("\The [user]") + "begins fasten \the [src]."))))
playsound(src, W.usesound, 75, 1)
if(do_after(user, 10, src))
to_chat(user, (anchored ? span_notice("You have unfastened \the [src] from the floor.") : span_notice("You have fastened \the [src] to the floor.")))