From ef8dea0fce17c79fb053ed1e4f98cfc930ee04bb Mon Sep 17 00:00:00 2001
From: 81Denton <32391752+81Denton@users.noreply.github.com>
Date: Wed, 2 Oct 2019 19:55:45 +0200
Subject: [PATCH] Fixes fultons teleporting people into the shadow realm
(#46826)
---
code/modules/mining/fulton.dm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm
index d55bac7c685..0c97f2212a0 100644
--- a/code/modules/mining/fulton.dm
+++ b/code/modules/mining/fulton.dm
@@ -43,6 +43,10 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
if(!beacon)
to_chat(user, "[src] is not linked to a beacon, and cannot be used!")
return
+ if(!(beacon in GLOB.total_extraction_beacons))
+ beacon = null
+ to_chat(user, "The connected beacon has been destroyed!")
+ return
if(!can_use_indoors)
var/area/area = get_area(A)
if(!area.outdoors)