prevent out of index access on tgui spamming the rd console (#16552)

* prevent out of index access on tgui spam

* prevent multi register and unregister

* this needs to be grouped for the execution order
This commit is contained in:
Kashargul
2024-11-03 19:59:16 +01:00
committed by GitHub
parent ae4cbc4f72
commit 8c35071d7e
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.")))