Boxes created through the crafting menu no longer spawn with their contents full (#72397)

## About The Pull Request

What it says on the tin. Since the contents weren't emptied you could
get infinite beakers, donk pockets, chicken nuggets etc. by making and
remaking a box over and over.
Fixes  #72385.
## Why It's Good For The Game

Bugfix. The world does not deserve infinite chicken nuggets yet
## Changelog
🆑
fix: Boxes created through the crafting menu no longer spawn with their
contents full
/🆑
This commit is contained in:
A miscellaneous Fern
2023-01-02 22:26:59 +01:00
committed by GitHub
parent 5ebb91f962
commit 2465e5cdc1
@@ -184,6 +184,9 @@
I = new R.result (get_turf(a.loc), R.result_amount || 1)
else
I = new R.result (get_turf(a.loc))
if(I.atom_storage)
for(var/obj/item/thing in I)
qdel(thing)
I.CheckParts(parts, R)
if(send_feedback)
SSblackbox.record_feedback("tally", "object_crafted", 1, I.type)