mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user