From 4b08c0ed6b026eb1a0e8b090ebe5cc9216c6f8cd Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Sun, 24 Mar 2024 20:07:23 +0300 Subject: [PATCH] [MIRROR] Stops Ghosts changing lathe output (#1584) (#2522) * Stops Ghosts changing lathe output (#82146) ## About The Pull Request Fixes ghosts being able to change a lathes output direction. ## Why It's Good For The Game Closes https://github.com/tgstation/tgstation/issues/82144 ## Changelog :cl: fix: Fixes ghosts being able to change a lathes output direction. /:cl: --------- * Stops Ghosts changing lathe output --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Bilbo367 <163439532+Bilbo367@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> --- code/game/machinery/autolathe.dm | 2 +- code/modules/research/machinery/_production.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index e20d53e4d31..4649d5ac20c 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -365,7 +365,7 @@ /obj/machinery/autolathe/MouseDrop(atom/over, src_location, over_location, src_control, over_control, params) . = ..() - if((!HAS_SILICON_ACCESS(usr) && !isAdminGhostAI(usr)) && !Adjacent(usr)) + if(!can_interact(usr) || (!HAS_SILICON_ACCESS(usr) && !isAdminGhostAI(usr)) && !Adjacent(usr)) return if(busy) balloon_alert(usr, "printing started!") diff --git a/code/modules/research/machinery/_production.dm b/code/modules/research/machinery/_production.dm index 7520a800df0..3f7206aea16 100644 --- a/code/modules/research/machinery/_production.dm +++ b/code/modules/research/machinery/_production.dm @@ -428,7 +428,7 @@ /obj/machinery/rnd/production/MouseDrop(atom/over, src_location, over_location, src_control, over_control, params) . = ..() - if((!issilicon(usr) && !isAdminGhostAI(usr)) && !Adjacent(usr)) + if(!can_interact(usr) || (!issilicon(usr) && !isAdminGhostAI(usr)) && !Adjacent(usr)) return if(busy) balloon_alert(usr, "busy printing!")