mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
panel open check and terminal nulling on disconnect
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user