Fixes tether module being able to tether yourself (#26403)

* turf check yippee!

* Update code/modules/mod/modules/modules_engineering.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>

---------

Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
This commit is contained in:
BiancaWilkson
2024-08-07 03:53:29 -04:00
committed by GitHub
parent fac0ffc7e3
commit be27510c41
@@ -114,6 +114,9 @@
return ..()
/obj/item/mod/module/tether/on_select_use(atom/target)
if(get_turf(target) == get_turf(src)) // Put this check before the parent call so the cooldown won't start if it fails
return FALSE
. = ..()
if(!.)
return