diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index 704c21fa360..fa746b28fe8 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -83,6 +83,7 @@ "Misc" ) + output_dir = dir return INITIALIZE_HINT_LATELOAD /obj/machinery/mecha_part_fabricator/LateInitialize() @@ -213,6 +214,11 @@ atom_say("Error: Insufficient power!") return + var/turf_to_print_on = get_step(src, output_dir) + if(iswallturf(turf_to_print_on)) + atom_say("Error: Output blocked by a wall!") + return + // Subtract the materials from the holder var/list/final_cost = get_design_cost(D) var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)