Fixes telekinetic tables (#19667)

Fixes folding tables being possible to set up with a mouse click
regardless of proximity.

Resolves https://github.com/Aurorastation/Aurora.3/issues/19475
This commit is contained in:
hazelrat
2024-07-24 19:42:22 +00:00
committed by GitHub
parent cf8866e480
commit c089667464
2 changed files with 60 additions and 1 deletions
+2 -1
View File
@@ -406,7 +406,8 @@
deploy(get_turf(user), user.dir, user)
/obj/item/material/folding_table/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
if(use_check(user) || !Adjacent(user))
if(use_check(user) || !user.Adjacent(target))
to_chat(usr, SPAN_WARNING("You fail to set up \the [src] in that location."))
return
if(isturf(target))
deploy(target, user.dir, user)