From ed8c68e74adbfbb0dfc977f6f77501cf28281611 Mon Sep 17 00:00:00 2001 From: VerySoft Date: Sat, 19 Feb 2022 20:23:42 -0500 Subject: [PATCH] Item Bank - Do not store things crafted from material stacks The item bank doesn't store what such things are made out of, and so, such things will not be correct when retrieved. This does not block things from being stored when made from the common crafting menu though, since those things spawn a defined item type instead of setting up material properties. --- code/game/objects/items/stacks/stack.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index 2ea9ad06673..b6ad543e6af 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -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