Fixed USB ports not working (#69920)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2022-09-16 08:01:44 -07:00
committed by GitHub
co-authored by Watermelon914
parent 132ef0414f
commit 8606dd6ff0
+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