Skip to content

Commit dee5540

Browse files
authored
fix quick equip (DaedalusDock#1138)
1 parent b346c06 commit dee5540

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

code/modules/mob/inventory.dm

+8-6
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,14 @@
581581
if(!I)
582582
to_chat(src, span_warning("You are not holding anything to equip!"))
583583
return
584-
if (temporarilyRemoveItemFromInventory(I) && !QDELETED(I))
585-
if(I.equip_to_best_slot(src))
586-
return
587-
if(put_in_active_hand(I))
588-
return
589-
I.forceMove(drop_location())
584+
585+
if(I.equip_to_best_slot(src))
586+
return
587+
588+
if(put_in_active_hand(I))
589+
return
590+
591+
I.forceMove(drop_location())
590592

591593
//used in code for items usable by both carbon and drones, this gives the proper back slot for each mob.(defibrillator, backpack watertank, ...)
592594
/mob/proc/getBackSlot()

0 commit comments

Comments
 (0)