From 302fdb423ddfe6a9a83c9911a09850cc77a42f06 Mon Sep 17 00:00:00 2001 From: Evildragon Date: Tue, 6 Aug 2024 08:25:58 +0900 Subject: [PATCH] removes unnecesary component check. send signal works --- code/game/objects/items.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index fa0c656cfaca2..cdb00f8c699de 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -486,9 +486,8 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE) return //If the item is in a storage item, take it out - if(loc.GetComponent(/datum/component/storage)) - if(SEND_SIGNAL(loc, COMSIG_TRY_STORAGE_TAKE, src, user, TRUE)) // this calls 'remove_from_storage()' proc - return + if(SEND_SIGNAL(loc, COMSIG_TRY_STORAGE_TAKE, src, user, TRUE)) // this calls 'remove_from_storage()' proc + return if(QDELETED(src)) //moving it out of the storage to the floor destroyed it. return