Merge pull request #6516 from Citadel-Station-13/upstream-merge-37427

[MIRROR] [S] Fixes an exploit that allows you to print any object using the circuit printer
This commit is contained in:
deathride58
2018-04-25 19:10:05 +00:00
committed by GitHub

View File

@@ -192,6 +192,8 @@
else if(ispath(build_type, /obj/item/integrated_circuit))
var/obj/item/integrated_circuit/IC = SScircuit.cached_components[build_type]
cost = IC.materials[MAT_METAL]
else
return
var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)