mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Fixes yokes showing as full if they were emptied into a fridge (#22349)
As per the title
This commit is contained in:
@@ -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!"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user