anchor.diff:  	if (rmat.on_hold())
   		say("Mineral access is on hold, please contact the quartermaster.")
   		return 0
  +	if(!check_resources(D))
  +		say("Not enough resources. Queue processing stopped.")
  +		temp = {"<span class='alert'>Not enough resources to build next part.</span><br>
  +					<a href='?src=[REF(src)];process_queue=1'>Try again</a> | <a href='?src=[REF(src)];clear_temp=1'>Return</a><a>"}
  +		return FALSE
   	materials.use_amount(res_coef)
   	rmat.silo_log(src, "built", -1, "[D.name]", res_coef)
   
  
positive.code: 	while(D)
  		if(stat&(NOPOWER|BROKEN))
  			return FALSE
  		if(!check_resources(D))
  			say("Not enough resources. Queue processing stopped.")
  			temp = {"<span class='alert'>Not enough resources to build next part.</span><br>
  						<a href='?src=[REF(src)];process_queue=1'>Try again</a> | <a href='?src=[REF(src)];clear_temp=1'>Return</a><a>"}
  			return FALSE
  		remove_from_queue(1)
  		build_part(D)
  		D = listgetindex(queue, 1)
  	say("Queue processing finished successfully.")
  
  
negative.code: 								)
  
  /obj/machinery/mecha_part_fabricator/Initialize(mapload)
  	stored_research = new
  	rmat = AddComponent(/datum/component/remote_materials, "mechfab", mapload)
  	return ..()
  