Moved mode check in welder act up (#15746)

Co-authored-by: Erwin Boot <E.boot@student.han.nl>
This commit is contained in:
Adrer
2021-03-22 11:34:48 +00:00
committed by GitHub
co-authored by Erwin Boot
parent e6d64f320c
commit 604e26d399
+1 -1
View File
@@ -164,9 +164,9 @@
to_chat(user, "You [mode ? "unfasten": "fasten"] the screws around the power connection.")
/obj/machinery/disposal/welder_act(mob/user, obj/item/I)
. = TRUE
if(mode != required_mode_to_deconstruct)
return
. = TRUE
if(contents.len > 0)
to_chat(user, "Eject the items first!")
return