Skip to content

Commit

Permalink
removes unnecesary component check. send signal works
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDragonfiend committed Aug 5, 2024
1 parent 6d46bdc commit 302fdb4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 302fdb4

Please sign in to comment.