diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index e463ee20fc..c95ce80c2e 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -269,7 +269,10 @@ if(!uses_charge) amount -= used if (amount <= 0) - amount = 0 // stop amount going negative ideally + // Tell container that we used up a stack + if(istype( loc, /obj/item/storage)) + var/obj/item/storage/holder = loc + holder.remove_from_storage( src, null) qdel(src) //should be safe to qdel immediately since if someone is still using this stack it will persist for a little while longer update_icon() return 1