From a912d4eeaba6b4a7cf2470e009d48ab76b583f03 Mon Sep 17 00:00:00 2001 From: Archie Date: Tue, 8 Jun 2021 07:51:40 -0300 Subject: [PATCH] Fixes it, finally. --- code/game/mecha/mech_fabricator.dm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index f0e9e65a..74b61ef2 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -113,13 +113,12 @@ if(materials) for(var/mat_id in materials.materials) - var/datum/material/M = mat_id - var/amount = materials.materials[mat_id] + var/datum/material/M = materials.materials[mat_id] var/ref = REF(M) - output += "[M.name]: [amount] cm³" - if(amount >= MINERAL_MATERIAL_AMOUNT) + output += "[M.name]: [M.amount] cm³" + if(M.amount >= MINERAL_MATERIAL_AMOUNT) output += "- Remove \[1\]" - if(amount >= (MINERAL_MATERIAL_AMOUNT * 10)) + if(M.amount >= (MINERAL_MATERIAL_AMOUNT * 10)) output += " | \[10\]" output += " | \[50\]" output += "
"