anchor.diff:  		if(!linked_lathe.materials.mat_container)
   			say("No material storage linked to protolathe!")
   			return
  -		linked_lathe.eject_sheets(ls["ejectsheet"], ls["eject_amt"])
  +		var/datum/material/M = locate(ls["ejectsheet"]) in linked_lathe.materials.mat_container.materials
  +		linked_lathe.eject_sheets(M, ls["eject_amt"])
   	//Circuit Imprinter Materials
   	if(ls["disposeI"])  //Causes the circuit imprinter to dispose of a single reagent (all of it)
   		if(QDELETED(linked_imprinter))
  
positive.code: 		if(!linked_imprinter.materials.mat_container)
  			say("No material storage linked to circuit imprinter!")
  			return
  		linked_imprinter.eject_sheets(ls["imprinter_ejectsheet"], ls["eject_amt"])
  	if(ls["disk_slot"])
  		disk_slot_selected = text2num(ls["disk_slot"])
  	if(ls["research_node"])
  
negative.code: 	for(var/mat_id in mat_container.materials)
  		var/datum/material/M = mat_id
  		var/amount = mat_container.materials[mat_id]
  		var/ref = REF(M)
  		l += "* [amount] of [M.name]: "
  		if(amount >= MINERAL_MATERIAL_AMOUNT) l += "<A href='?src=[REF(src)];ejectsheet=[ref];eject_amt=1'>Eject</A> [RDSCREEN_NOBREAK]"
  		if(amount >= MINERAL_MATERIAL_AMOUNT*5) l += "<A href='?src=[REF(src)];ejectsheet=[ref];eject_amt=5'>5x</A> [RDSCREEN_NOBREAK]"
  		if(amount >= MINERAL_MATERIAL_AMOUNT) l += "<A href='?src=[REF(src)];ejectsheet=[ref];eject_amt=50'>All</A>[RDSCREEN_NOBREAK]"
  		l += ""
  	l += "</div>[RDSCREEN_NOBREAK]"
  	return l
  