# Autodoc Bug when an item is on the machine's tile

**URL:** <https://discourse.cataclysmdda.org/t/autodoc-bug-when-an-item-is-on-the-machines-tile/25940>\
**Category:** The Garage\
**Created:** [February 19, 2021, 10:30am UTC](https://discourse.cataclysmdda.org/t/autodoc-bug-when-an-item-is-on-the-machines-tile/25940 "2021-02-19T10:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcidAntOnAMinefield](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@AcidAntOnAMinefield](https://discourse.cataclysmdda.org/u/AcidAntOnAMinefield)\
**Post date:** [February 19, 2021, 10:30am UTC](https://discourse.cataclysmdda.org/t/autodoc-bug-when-an-item-is-on-the-machines-tile/25940/1 "2021-02-19T10:30:53Z")

</div>

So I found this by accident a couple days ago, and I saw it happening to Vormithrax as well, which prompted me to create a test character for this, and can now say it’s 100% replicable. (screenshots will be provided).

Build: 11476  
Steps:

- Create world;
- Create a character that’s smart enough to use an autodoc with moderate success.
- Start in a lab, find an autodoc;
- debug 2 Power Storage CBMs into your inventory.
- Autodocs now start with Anesthesia Kits on top of them, but if it doesn’t have one, just put any random item you may have on the machine’s tile.
- Proceed to install a CBM;
- “Pick Up” Window pops up, pick up whatever item’s on top of the Autodoc.
- Wake up to -1CBM, -Anesthetic and no installed CBMs.

It only happens when you pick up the items. If you don’t, the procedure goes through as intended.

 ![test6](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/c/c582e4dff9c4594cd5bf8272216821e9c24500b8.png) ![test5](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/d/d1b0e6d2da5b0b62f3ac2128803f8e8937fb3f51.png) ![test4](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/c/ccbf102ec99ddc9aee7437ad9b2d42b0bb3fa565.png) ![test3](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/e/e3c4596cb95e1b0835bc20fc4e401216bfb633fa.png) ![test2](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/d/da3ec6e72f8d480581ac2668759c326f8a183f2f.jpeg) ![test1](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/e/ee3cd45a92e447cddd96e6cc45042869b9ee4c9f.png)

---

<div class="post-metadata">

**Author:** ![Valiant](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valiant/32/4788_2.png) [@Valiant](https://discourse.cataclysmdda.org/u/Valiant)\
**Post date:** [February 19, 2021, 7:04pm UTC](https://discourse.cataclysmdda.org/t/autodoc-bug-when-an-item-is-on-the-machines-tile/25940/2 "2021-02-19T19:04:42Z")

</div>

Should be fixed with [this PR](https://github.com/CleverRaven/Cataclysm-DDA/pull/47612).
