Fixes canisters constantly 'failing to connect' despite it actually connecting (#22625)

* smh my head

* Contrabang review
This commit is contained in:
1080pCat
2023-10-04 02:19:44 +10:00
committed by GitHub
parent fe809bf8e1
commit 6b72ca7045

View File

@@ -146,11 +146,9 @@
var/obj/machinery/atmospherics/unary/portables_connector/possible_port = locate(/obj/machinery/atmospherics/unary/portables_connector/) in loc
if(possible_port)
if(connect(possible_port))
on = FALSE
to_chat(user, "<span class='notice'>You connect [src] to the port.</span>")
update_icon()
if(on)
on = !on
return
else
to_chat(user, "<span class='notice'>[src] failed to connect to the port.</span>")
return