Merge pull request #14050 from VOREStation/master

11/6/22 - Teleporter hotfix
This commit is contained in:
Casey
2022-11-06 16:51:07 -05:00
committed by GitHub
+3 -3
View File
@@ -23,12 +23,12 @@ var/list/obj/effect/bump_teleporter/BUMP_TELEPORTERS = list()
if(!ismob(user))
//user.loc = src.loc //Stop at teleporter location
return
var/mob/M = user //VOREStation edit
if(!id_target)
//user.loc = src.loc //Stop at teleporter location, there is nowhere to teleport to.
return
for(var/obj/effect/bump_teleporter/BT in BUMP_TELEPORTERS)
if(BT.id == src.id_target)
usr.loc = BT.loc //Teleport to location with correct id.
return
M.forceMove(BT.loc) //Teleport to location with correct id. //VOREStation Edit
return