Fixes an exploit with circuit printers

Allows you to print literally anything.
This commit is contained in:
Arokha Sieyes
2018-04-25 20:49:45 -04:00
parent 4d1f216c85
commit cb7e0de2e4
@@ -168,6 +168,8 @@
else if(ispath(build_type, /obj/item/integrated_circuit))
var/obj/item/integrated_circuit/IC = build_type
cost = initial(IC.w_class)
else
return
if(metal - cost < 0)
to_chat(usr, "<span class='warning'>You need [cost] metal to build that!.</span>")