Adding a few checks for machines that use disks (#91278)

## About The Pull Request

Fixes a bug(?) where you, being non-carbon, could teleport disks from
various machines to your location (for example, playing as an AI or
cyborg, carbons with telekinesis too)

## Why It's Good For The Game

teleporting disks is bad...

## Changelog

🆑
fix: Now if you are not near the console the disk will drop in its place
instead of your location
/🆑
This commit is contained in:
Aliceee2ch
2025-05-22 18:19:38 +00:00
committed by GitHub
parent cf2b495b8c
commit ef26549017
3 changed files with 10 additions and 7 deletions
@@ -193,7 +193,10 @@
if(!inserted_disk)
return
user.put_in_hands(inserted_disk)
if(!user || !Adjacent(user))
inserted_disk.forceMove(drop_location())
else
user.put_in_hands(inserted_disk)
inserted_disk = null
playsound(src, 'sound/machines/card_slide.ogg', 50)
return TRUE