anchor.diff:  /obj/machinery/mineral/purifier/New()
   	..()
   	spawn( 5 )
  -		src.input = locate(/obj/machinery/mineral/input, get_step(src, WEST))
  -		src.output = locate(/obj/machinery/mineral/output, get_step(src, EAST))
  +		for (var/dir in cardinal)
  +			src.input = locate(/obj/machinery/mineral/input, get_step(src, dir))
  +			if(src.input) break
  +		for (var/dir in cardinal)
  +			src.output = locate(/obj/machinery/mineral/output, get_step(src, dir))
  +			if(src.output) break
   		return
   	return
   
  
positive.code: /obj/machinery/mineral/stacking_machine/New()
  	..()
  	spawn( 5 )
  		src.input = locate(/obj/machinery/mineral/input, get_step(src, EAST))
  		src.output = locate(/obj/machinery/mineral/output, get_step(src, WEST))
  		processing_items.Add(src)
  		return
  	return
  
negative.code: /obj/machinery/mineral/unloading_machine/New()
  	..()
  	spawn( 5 )
  		for (var/dir in cardinal)
  			src.input = locate(/obj/machinery/mineral/input, get_step(src, dir))
  			if(src.input) break
  		for (var/dir in cardinal)
  			src.output = locate(/obj/machinery/mineral/output, get_step(src, dir))
  			if(src.output) break
  		processing_items.Add(src)
  		return
  	return
  