Fix: Prevent Mech Fabricator output into the wall (#26790)

* Fix: Prevent Mech Fabricator output into the wall

* Move getting turf print on
This commit is contained in:
Aylong
2024-09-19 05:26:15 +03:00
committed by GitHub
parent 6f57578889
commit 3998a763d8
+6
View File
@@ -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)