used stack (#18149)

This commit is contained in:
Will
2025-08-04 18:39:39 -04:00
committed by GitHub
parent 666c2906f0
commit 3a603815db
+4
View File
@@ -269,6 +269,10 @@
if(!uses_charge)
amount -= used
if (amount <= 0)
// 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