From 0d1dcdcc9eebda1ad41f6b817670fd9ce42cf299 Mon Sep 17 00:00:00 2001
From: GDN <96800819+GDNgit@users.noreply.github.com>
Date: Mon, 23 Jan 2023 16:28:27 -0600
Subject: [PATCH] fixes a teleporter runtime (#20263)
---
code/game/machinery/teleporter.dm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm
index c10375512fb..b2d9a910e68 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -588,9 +588,12 @@
if(exchange_parts(user, I))
return
if(panel_open && istype(I, /obj/item/circuitboard/teleporter_perma))
+ if(!teleporter_console)
+ to_chat(user, "[src] is not linked to a teleporter console.")
+ return
var/obj/item/circuitboard/teleporter_perma/C = I
C.target = teleporter_console.target
- to_chat(user, "You copy the targeting information from [src] to [C]")
+ to_chat(user, "You copy the targeting information from [src] to [C].")
return
return ..()