From be27510c4152fe00635d92b8f6028e058273afac Mon Sep 17 00:00:00 2001 From: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:53:29 -0400 Subject: [PATCH] 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> --- code/modules/mod/modules/modules_engineering.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mod/modules/modules_engineering.dm b/code/modules/mod/modules/modules_engineering.dm index 0c0b08b8ebd..d42f440676e 100644 --- a/code/modules/mod/modules/modules_engineering.dm +++ b/code/modules/mod/modules/modules_engineering.dm @@ -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