[MIRROR] Fixes the foreach and filter circuit component [MDB IGNORE] (#9469)

* Fixes the foreach and filter circuit component (#62798)

Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>

* Fixes the foreach and filter circuit component

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
SkyratBot
2021-11-15 09:42:10 -05:00
committed by GitHub
co-authored by Watermelon914 Watermelon914
parent 97d1558209
commit 241d22ec4b
4 changed files with 34 additions and 17 deletions
+6
View File
@@ -275,6 +275,12 @@
/obj/item/circuit_component/proc/get_location()
return get_turf(src) || get_turf(parent?.shell)
/obj/item/circuit_component/balloon_alert(mob/viewer, text)
if(parent)
return parent.balloon_alert(viewer, text)
return ..()
/// Called before input_received and should_receive_input. Used to perform behaviour that shouldn't care whether the input should be received or not.
/obj/item/circuit_component/proc/pre_input_received(datum/port/input/port)
SHOULD_NOT_SLEEP(TRUE)