[MIRROR] Fixed USB ports not working [MDB IGNORE] (#16278)

* Fixed USB ports not working (#69920)

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

* Fixed USB ports not working

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
2022-09-17 11:43:55 -07:00
committed by GitHub
co-authored by Watermelon914 Watermelon914
parent beabd51157
commit e68ee147f7
+2
View File
@@ -37,6 +37,8 @@
var/obj/item/circuit_component/component = circuit_component
if(ispath(circuit_component))
component = new circuit_component(null)
if(!should_register)
component.register_usb_parent(parent)
RegisterSignal(component, COMSIG_CIRCUIT_COMPONENT_SAVE, .proc/save_component)
circuit_components += component