From 4288d9f83d93640276b700d27c506af650310a91 Mon Sep 17 00:00:00 2001 From: Hex <13907407+hex37@users.noreply.github.com> Date: Sun, 25 Jun 2023 14:23:28 -0500 Subject: [PATCH] Update code/game/machinery/machinery.dm Co-authored-by: Atermonera --- code/game/machinery/machinery.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index e31bdda6e80..311f2ac65fc 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -489,8 +489,8 @@ 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(LAZYLEN(materials)) - if(materials[incoming_material]) + if(!LAZYACCESS(materials[incoming_material])) + return var/datum/material/M = get_material_by_name(incoming_material) if(!istype(M)) return