From cde6aa0e355bc4483b0ca004016271c0a6746ec8 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Jul 2012 18:28:38 +0300 Subject: [PATCH] Fixed phantom donut bug Fixes issues #1431 and #1183 Also fixes similar bug with SE injector and any item that gets deleted while in hand --- code/game/objects/items.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 3287321aced..7ebcc9242d6 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -1,3 +1,9 @@ +/obj/item/Del() + if (src.loc && istype(src.loc, /mob/living/carbon/human)) + //world << "\blue **Beep! Deleted [src] from [src.loc]**" + var/mob/living/carbon/human/H = src.loc + H.u_equip(src) + ..() /obj/item/weapon/bedsheet/ex_act(severity) if (severity <= 2)