Skip to content

Commit

Permalink
Update code/game/machinery/machinery.dm
Browse files Browse the repository at this point in the history
Co-authored-by: Atermonera <atermonera@gmail.com>
  • Loading branch information
hex37 and Atermonera authored Jun 25, 2023
1 parent ce21042 commit 4288d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4288d9f

Please sign in to comment.