Merge pull request #12295 from Very-Soft/stackpersist

Item Bank - Do not store things crafted from material stacks
This commit is contained in:
Casey
2022-02-20 01:36:58 +00:00
committed by CHOMPStation2
parent 23f9e5828b
commit 780499fff6
+5 -1
View File
@@ -212,7 +212,11 @@
O.set_dir(user.dir)
O.add_fingerprint(user)
//VOREStation Addition Start - Let's not store things that get crafted with materials like this, they won't spawn correctly when retrieved.
if (isobj(O))
var/obj/P = O
P.persist_storable = FALSE
//VOREStation Addition End
if (istype(O, /obj/item/stack))
var/obj/item/stack/S = O
S.amount = produced