mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
fix ore bag pickups for cyborgs (#31867)
This commit is contained in:
@@ -583,12 +583,18 @@
|
||||
if(isrobot(user))
|
||||
return //Robots can't interact with storage items.
|
||||
|
||||
try_insert_item(I, user)
|
||||
|
||||
/// Checks if an item can be inserted, then insertsit. Riveting, I know.
|
||||
/// Mostly exists to bypass the robot restriction for using storage (for like ore bags).
|
||||
/obj/item/storage/proc/try_insert_item(obj/item/I, mob/user)
|
||||
if(!can_be_inserted(I))
|
||||
if(length(contents) >= storage_slots) //don't use items on the backpack if they don't fit
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
handle_item_insertion(I, user)
|
||||
return TRUE
|
||||
|
||||
/obj/item/storage/attack_hand(mob/user)
|
||||
if(ishuman(user))
|
||||
|
||||
Reference in New Issue
Block a user