panel open check and terminal nulling on disconnect

This commit is contained in:
McBawbaggings
2018-07-27 12:57:32 +01:00
parent 508bbc94e9
commit bc7a2fcc5b
+2 -1
View File
@@ -158,7 +158,7 @@
/obj/machinery/power/smes/wirecutter_act(mob/living/user, obj/item/I)
//disassembling the terminal
if(terminal)
if(terminal && panel_open)
terminal.dismantle(user, I)
return TRUE
@@ -195,6 +195,7 @@
/obj/machinery/power/smes/disconnect_terminal()
if(terminal)
terminal.master = null
terminal = null
stat |= BROKEN