Autolathes don't spam debug on first use (#8019)

Co-authored-by: atermonera <matthew.forsland@revature.net>
This commit is contained in:
Atermonera
2021-04-10 03:42:31 -04:00
committed by VirgoBot
co-authored by atermonera
parent a8b775c8d9
commit 3fa568de5e
3 changed files with 25 additions and 49 deletions
+2 -1
View File
@@ -53,9 +53,10 @@ var/list/name_to_material
/proc/populate_material_list(force_remake=0)
if(name_to_material && !force_remake) return // Already set up!
name_to_material = list()
for(var/type in typesof(/datum/material) - /datum/material)
for(var/type in subtypesof(/datum/material))
var/datum/material/new_mineral = new type
if(!new_mineral.name)
qdel(new_mineral)
continue
name_to_material[lowertext(new_mineral.name)] = new_mineral
return 1