From 6c7fd51dbbd72ca23ac85a696fefde307901aec2 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Wed, 7 Jul 2021 11:30:56 -0400 Subject: [PATCH] Trash is never used to hold an instance of trash --- code/modules/food/food/snacks.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index d1b2409ac5..e2955b8c0c 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -55,11 +55,8 @@ usr.drop_from_inventory(src) // Drop food from inventory so it doesn't end up staying on the hud after qdel, and so inhands go away if(trash) - if(ispath(trash,/obj/item)) - var/obj/item/TrashItem = new trash(usr) - usr.put_in_hands(TrashItem) - else if(istype(trash,/obj/item)) - usr.put_in_hands(trash) + var/obj/item/TrashItem = new trash(usr) + usr.put_in_hands(TrashItem) qdel(src) /obj/item/weapon/reagent_containers/food/snacks/attack_self(mob/user as mob)