Fixes custom material examine runtime (#69873)

* Fixes custom material examine runtime, and also fixes the exact same problem showing up in GAGS' setting custom material amounts.
This commit is contained in:
ShizCalev
2022-09-14 19:42:55 -04:00
committed by GitHub
parent 284827ff66
commit ac37eeb421
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -334,7 +334,8 @@
/obj/structure/table/greyscale/set_custom_materials(list/materials, multiplier)
. = ..()
var/list/materials_list = list()
for(var/datum/material/current_material as anything in custom_materials)
for(var/custom_material in custom_materials)
var/datum/material/current_material = GET_MATERIAL_REF(custom_material)
materials_list += "[current_material.name]"
desc = "A square [(materials_list.len > 1) ? "amalgamation" : "piece"] of [english_list(materials_list)] on four legs. It can not move."