mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 01:25:10 +01:00
adds safety check before resstet.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user