diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index 871ad7e4d9..60f331a592 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -391,9 +391,9 @@ Class Procs: /obj/machinery/proc/exchange_parts(mob/user, obj/item/storage/part_replacer/W) if(!istype(W)) - return + return FALSE if((flags_1 & NODECONSTRUCT_1) && !W.works_from_distance) - return + return FALSE var/shouldplaysound = 0 if(component_parts) if(panel_open || W.works_from_distance) diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm index 03f487a2f7..fdb59ec1cf 100644 --- a/code/modules/atmospherics/machinery/atmosmachinery.dm +++ b/code/modules/atmospherics/machinery/atmosmachinery.dm @@ -188,7 +188,7 @@ Pipelines + Other Objects -> Pipe network /obj/machinery/atmospherics/wrench_act(mob/living/user, obj/item/I) if(!can_unwrench(user)) - return TRUE + return ..() var/turf/T = get_turf(src) if (level==1 && isturf(T) && T.intact) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm index ce532f9ed8..83a6c8f132 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm @@ -73,20 +73,20 @@ update_icon() /obj/machinery/atmospherics/components/unary/thermomachine/attackby(obj/item/I, mob/user, params) - if(!(on || state_open)) + if(!on) if(default_deconstruction_screwdriver(user, icon_state_open, initial(icon_state), I)) return - if(exchange_parts(user, I)) - return if(default_change_direction_wrench(user, I)) return if(default_deconstruction_crowbar(I)) return + if(exchange_parts(user, I)) + return return ..() -/obj/machinery/atmospherics/components/unary/thermomachine/default_change_direction_wrench(mob/user, obj/item/wrench/W) +/obj/machinery/atmospherics/components/unary/thermomachine/default_change_direction_wrench(mob/user, obj/item/I) if(!..()) - return 0 + return FALSE SetInitDirections() var/obj/machinery/atmospherics/node = nodes[1] if(node) @@ -100,7 +100,7 @@ node.atmosinit() node.addMember(src) build_network() - return 1 + return TRUE /obj/machinery/atmospherics/components/unary/thermomachine/ui_status(mob/user) if(interactive)