Skip to content

Commit

Permalink
[MIRROR] Fix EMP event unregistration and inconsistent /emp_act() ove…
Browse files Browse the repository at this point in the history
…rride
  • Loading branch information
PsiOmegaDelta authored and SierraHelper committed Nov 30, 2023
1 parent c205847 commit 94cdced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/datums/extensions/chameleon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/datum/extension/chameleon/Destroy()
if (emp_amount)
STOP_PROCESSING(SSobj, src)
GLOB.empd_event.unregister(item_holder)
GLOB.empd_event.unregister(item_holder, src)
item_holder.verbs -= chameleon_verbs
item_holder = null
return ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/integrated_electronics/subtypes/input.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// This is a mainly physical thing, not affected by electricity
/obj/item/integrated_circuit/input/toggle_button/emp_act(severity)
SHOULD_CALL_PARENT(FALSE)
GLOB.empd_event.raise_event(src, severity)
return

/obj/item/integrated_circuit/input/toggle_button/get_topic_data(mob/user)
return list("Toggle [get_pin_data(IC_OUTPUT, 1) ? "Off" : "On"]" = "toggle=1")
Expand Down

0 comments on commit 94cdced

Please sign in to comment.