mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user