Cryogenics Fix (#9318)

Cryogenics no longer swallow the items that spawn in your hands if you spawn there.

Fixes #9280
This commit is contained in:
Geeves
2020-07-10 21:32:26 +02:00
committed by GitHub
parent e75e5ca76a
commit 01259dd3ac
4 changed files with 18 additions and 1 deletions

View File

@@ -240,7 +240,11 @@ var/list/slot_equipment_priority = list( \
/mob/proc/canUnEquip(obj/item/I)
if(!I) //If there's nothing to drop, the drop is automatically successful.
return 1
return TRUE
if(istype(loc, /obj))
var/obj/O = loc
if(!O.can_hold_dropped_items())
return FALSE
var/slot = get_inventory_slot(I)
return slot && I.mob_can_unequip(src, slot)