Skip to content

Commit

Permalink
Fixeki 6
Browse files Browse the repository at this point in the history
  • Loading branch information
CheBokJam committed Dec 9, 2024
1 parent 8b6b6c5 commit 0b4087b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/components/magazine_catcher.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
RegisterSignal(parent, COMSIG_ITEM_EQUIPPED_TO_SLOT, PROC_REF(equipped_to_slot))
RegisterSignals(parent, list(COMSIG_ITEM_EQUIPPED_NOT_IN_SLOT, COMSIG_ITEM_DROPPED), PROC_REF(removed_from_slot))
storage = parent
storage.verbs += /datum/component/magazine_catcher/verb/toggle_auto_catch
storage.verbs += /datum/component/magazine_catcher/proc/toggle_auto_catch

/datum/component/magazine_catcher/UnregisterFromParent()
. = ..()
if(storage)
storage.verbs -= /datum/component/magazine_catcher/verb/toggle_auto_catch
storage.verbs -= /datum/component/magazine_catcher/proc/toggle_auto_catch
UnregisterSignal(parent, list(COMSIG_ITEM_EQUIPPED_TO_SLOT, COMSIG_ITEM_EQUIPPED_NOT_IN_SLOT, COMSIG_ITEM_DROPPED))

/datum/component/magazine_catcher/proc/equipped_to_slot(datum/source, mob/user, slot)
Expand Down

0 comments on commit 0b4087b

Please sign in to comment.