[MIRROR] fix runtime and laundry basket dupe from #15534 (#7587)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-01-19 02:32:40 -07:00
committed by GitHub
parent a6dfa765dd
commit b0f94c2047

View File

@@ -65,7 +65,8 @@
return ..()
/obj/item/weapon/storage/laundry_basket/dropped(mob/user as mob)
QDEL_NULL(linked)
if(linked)
QDEL_NULL(linked)
return ..()
/obj/item/weapon/storage/laundry_basket/show_to(mob/user as mob)
@@ -82,6 +83,6 @@
use_to_pickup = FALSE
/obj/item/weapon/storage/laundry_basket/offhand/dropped(mob/user as mob)
user.drop_from_inventory(linked)
if(user.isEquipped(linked))
user.drop_from_inventory(linked)
return