Fixes yokes showing as full if they were emptied into a fridge (#22349)

As per the title
This commit is contained in:
Casper3667
2026-04-26 10:55:34 +00:00
committed by GitHub
parent ed80751534
commit baae487e27
2 changed files with 11 additions and 1 deletions
@@ -80,11 +80,15 @@
return
var/obj/item/reagent_containers/food/drinks/cans/C = cans[length(cans)]
cans -= C
remove_from_storage(C, get_turf(user))
user.put_in_hands(C)
update_icon()
/obj/item/storage/box/fancy/yoke/remove_from_storage(obj/item/W, atom/new_location)
. = ..()
if(.)
cans -= W
/obj/item/storage/box/fancy/yoke/attackby(obj/item/attacking_item, mob/user)
to_chat(user, SPAN_WARNING("\The [src] cannot be refilled with items!"))