Fixes teleporting rack with telekinesis (#71851)

Building racks with telekinesis will now build them where the racks are, rather than teleporting to where the user is.
This commit is contained in:
FinancialGoose
2022-12-11 05:15:15 -05:00
committed by GitHub
parent 045e339e7f
commit 39f0b565df
+2 -1
View File
@@ -864,9 +864,10 @@
if(do_after(user, 50, target = user, progress=TRUE))
if(!user.temporarilyRemoveItemFromInventory(src))
return
var/obj/structure/rack/R = new /obj/structure/rack(user.loc)
var/obj/structure/rack/R = new /obj/structure/rack(loc)
user.visible_message("<span class='notice'>[user] assembles \a [R].\
</span>", span_notice("You assemble \a [R]."))
R.add_fingerprint(user)
qdel(src)
building = FALSE