Merge pull request #14371 from Sneakyrat6/matContainer

Material container fixes
This commit is contained in:
silicons
2021-03-10 01:31:51 -07:00
committed by GitHub
9 changed files with 88 additions and 27 deletions
+1 -1
View File
@@ -65,7 +65,7 @@
/obj/machinery/mecha_part_fabricator/Initialize(mapload)
stored_research = new
rmat = AddComponent(/datum/component/remote_materials, "mechfab", mapload && link_on_init)
rmat = AddComponent(/datum/component/remote_materials, "mechfab", mapload && link_on_init, _after_insert=CALLBACK(src, .proc/AfterMaterialInsert))
RefreshParts() //Recalculating local material sizes if the fab isn't linked
return ..()