Skip to content

Commit

Permalink
Update code/game/mecha/mech_fabricator.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 4288d9f commit 032f60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/mecha/mech_fabricator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
update_categories()

/obj/machinery/mecha_part_fabricator/proc/eject_materials_partial(var/material, var/amount) // 0 amount = 0 means ejecting a full stack; -1 means eject everything
var/recursive = amount == -1 ? 1 : 0
var/recursive = amount == -1
var/matstring = lowertext(material)
var/datum/material/M = get_material_by_name(matstring)
if(recursive && materials[matstring] >= M.perunit)
Expand Down

0 comments on commit 032f60f

Please sign in to comment.