Skip to content

Commit

Permalink
[MIRROR] Stops Ghosts changing lathe output (#1584) (#2522)
Browse files Browse the repository at this point in the history
* 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 tgstation/tgstation#82144 

## Changelog

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

---------



* Stops Ghosts changing lathe output

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Bilbo367 <[email protected]>
Co-authored-by: SyncIt21 <[email protected]>
  • Loading branch information
4 people authored Mar 24, 2024
1 parent 0bc6f17 commit 4b08c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/autolathe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down
2 changes: 1 addition & 1 deletion code/modules/research/machinery/_production.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit 4b08c0e

Please sign in to comment.