[MIRROR] [READY] Fixes being able to use items while inside a mech (#1369)

* [READY] Fixes being able to use items while inside a mech (#54302)

* [READY] Fixes being able to use items while inside a mech

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-10-19 08:58:21 +02:00
committed by GitHub
co-authored by Rohesie
parent c414a1cdb8
commit 8b10c19ae0
4 changed files with 19 additions and 12 deletions
+2 -2
View File
@@ -394,8 +394,8 @@
return obscured
/obj/item/proc/equip_to_best_slot(mob/M, swap=FALSE)
if(src != M.get_active_held_item())
/obj/item/proc/equip_to_best_slot(mob/M, swap = FALSE, check_hand = TRUE)
if(check_hand && src != M.get_active_held_item())
to_chat(M, "<span class='warning'>You are not holding anything to equip!</span>")
return FALSE