diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 7fec735c0f5..58be6fcbb85 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -489,7 +489,7 @@ Class Procs: return /obj/machinery/proc/eject_material_of_type(var/incoming_material) //Used for autolathe, protolathe, mechfab, exofab. Stuff that takes materials, basically. - if(!LAZYACCESS(materials[incoming_material])) + if(!LAZYLEN(materials[incoming_material])) return var/datum/material/M = get_material_by_name(incoming_material) if(!istype(M))