diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index d8b5617d2a1..9fc7b0aa21d 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -65,9 +65,11 @@ /obj/machinery/teleport/hub/attack_ghost(mob/user as mob) var/atom/l = loc - var/obj/machinery/computer/teleporter/com = locate(/obj/machinery/computer/teleporter, locate(l.x - 2, l.y, l.z)) - if(com && com.locked) - user.loc = get_turf(com.locked) + var/obj/machinery/teleport/station/S = power_station + if(S) + var/obj/machinery/computer/teleporter/com = S.teleporter_console + if(com && com.target) + user.loc = get_turf(com.target) /obj/effect/portal/attack_ghost(mob/user as mob) if(target)