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

🆑
fix: Fixes ghosts being able to change a lathes output direction.
/🆑

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
Bilbo367
2024-03-22 22:49:10 +01:00
committed by GitHub
co-authored by SyncIt21
parent 0a4073396b
commit fb974c4270
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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!")
@@ -423,7 +423,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!")