Fix some cases of silicons teleporting items on put_in_hands (#28017)

* fix some cases

* forceMove

* replace usr with user
This commit is contained in:
Mira
2025-01-28 21:03:31 +00:00
committed by GitHub
parent 665eb99467
commit d28d740216
2 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -134,7 +134,9 @@
if("cellremove")
if(open && cell && !usr.get_active_hand())
cell.update_icon()
usr.put_in_hands(cell)
cell.forceMove(loc)
if(Adjacent(usr) && !issilicon(usr))
usr.put_in_hands(cell)
cell.add_fingerprint(usr)
cell = null
usr.visible_message("<span class='notice'>[usr] removes the power cell from [src].</span>", "<span class='notice'>You remove the power cell from [src].</span>")