adds safety check before resstet.

This commit is contained in:
Kashargul
2023-11-30 22:40:05 +01:00
committed by GitHub
parent c9ad9e2205
commit 48877faa05
+2
View File
@@ -190,4 +190,6 @@
if(selected_component == "power cell")
target.cell = null
if(MODIFIY_ROBOT_RESET_MODULE)
if(tgui_alert(usr, "Are you sure that you want to reset the entire module?","Confirm",list("Yes","No"))=="No")
return
target.module_reset()