Fixes id cards being stuck in RFID removed from modular computers (#22132)

When the RFID slot is removed from a modular computer, it now ejects the
id card in it. This occurs for example when it is destroyed by various
means.

---------

Signed-off-by: Casper3667 <8396443+Casper3667@users.noreply.github.com>
Co-authored-by: Cody Brittain <1779662+Generalcamo@users.noreply.github.com>
This commit is contained in:
Casper3667
2026-04-02 14:53:49 +02:00
committed by GitHub
parent 221a3ac38f
commit b95da0a5a2
2 changed files with 7 additions and 0 deletions
@@ -112,6 +112,7 @@
nano_printer = null
found = TRUE
else if(card_slot == H)
astype(H, /obj/item/computer_hardware/card_slot)?.eject_id()
card_slot = null
found = TRUE
else if(battery_module == H)